# Other times and venues when the requested slot is full When the time a guest asked for can't be booked, what to offer instead (BOO-1400), as the Booking Widget offers it: 1. The same venue first, when the operator has "offer the same venue first" on (BOO-968): the venue's other booking types in the same category and sub-category, as one entry with inSite: true. 2. Nearby venues of the same operator with a booking type in the requested category: the nearest limit, only within radius miles when set, only venues when given. The operator's cross_sale rules for your channel decide which venues may be offered (restrict, exclude) and which come first (prioritise, by rank), then by distance (BOO-909, BOO-969). Unlike partner GET /booking-rules, where you apply cross-sale yourself, this endpoint applies it for you. 3. The booking type at each venue: the same product, else the same aggregation slug, else (with categoryMatch=true) a product of the same category and sub-category; each is tried in that order until one has times. 4. Times: instant-book times within ±window minutes of time, at the length the booking would take (a variable-length type's duration, else its shortest; a fixed-length type's own length), as availability answers them for your channel. For a variable-length type every time is checked at that length. Only venues with at least one time are listed. explain=true adds what was searched and why each venue or booking type was left out; its shape is for people, not for parsing, and may change. Endpoint: GET /venues/{compositeId}/alternatives Version: 12.19.0 Security: Live, Sandbox ## Path parameters: - `compositeId` (string, required) The requested booking type's composite id ({operatorId}|{rmsSlug}|{venueId}|{productId}). ## Query parameters: - `date` (string, required) The booking date (the venue's trading day, as for availability). - `time` (string, required) The requested start time, HH:mm. Example: "19:00" - `partySize` (integer, required) - `duration` (integer) Minutes, for a variable-length booking type. When omitted, its shortest. - `window` (integer) Times within this many minutes either side of time. Default 30. - `limit` (integer) The nearest this many other venues are searched. Default 5. - `radius` (number) Only venues within this many miles (with limit, the nearest limit of those). - `venues` (string) Comma-separated venue ids (the RMS venue id) to search among; when omitted, every venue of the operator. - `categoryMatch` (boolean) Fall back to a booking type of the same category and sub-category when neither the product nor its slug is offered. Default false. - `explain` (boolean) Add explain, what was searched and why each venue or booking type was left out. Default false. ## Header parameters: - `X-Partner-Reference` (string) Required for Bookable Agents. Identifies the partner for whom the request is being made. This header must be provided when making requests with the agent:write scope. Accepts either form: * a partner reference, e.g. thefork.com * a partner id, e.g. 288 — the same id returned by GET /agent/impersonation-targets A value matching a known partner reference always resolves as that reference; it is only treated as a partner id when it does not. Most partners have no reference configured, so the partner id is generally the form to use — the one exception being a reference spelled as digits, which still takes precedence over the partner whose id is that number. - `X-Correlation-ID` (string) An optional ID which you can use to track transactions across multiple systems. It can have any value, but we recommend avoiding . characters. Mirrored back in a response header. Example: "11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA" ## Response 200 fields (application/json): - `alternatives` (array, required) - `alternatives.venueId` (string, required) The venue's composite id ({operatorId}|{rmsSlug}|{venueId}). - `alternatives.name` (string, required) - `alternatives.distance` (number, required) Miles from the requested venue; 0 for the requested venue itself. - `alternatives.inSite` (boolean, required) The requested venue itself, offering its other similar booking types (BOO-968). - `alternatives.cover` (string,null) The venue's cover photo, when it has one. - `alternatives.products` (array, required) - `alternatives.products.productId` (string, required) The booking type's id at that venue; book it as {venueId}|{productId}. - `alternatives.products.matchedBy` (string,null) How it was matched to the requested booking type; null for the requested venue's own similar types. Enum: "id", "slug", "category" - `alternatives.products.times` (array, required) - `alternatives.products.times.time` (string, required) Start time, HH:mm. Example: "19:15" - `alternatives.products.times.duration` (integer, required) The length it is offered for, minutes. Example: 90 - `explain` (object,null) Only with explain=true. What was searched and why each venue or booking type was left out; for people, may change. ## Response 400 fields (application/json): - `type` (string) A URI reference [rfc9457] that identifies the problem type. This specification encourages that, when dereferenced, it provides human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank". - `title` (string, required) A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization. - `status` (integer, required) The HTTP status code [rfc9457, Section 3.1.12] generated by the origin server for this occurrence of the problem. - `detail` (string) A human-readable explanation specific to this occurrence of the problem. - `code` (string, required) Error code in the format RESOURCE-X-NNN where X is R (retryable) or N (usually non-retryable; a few N codes are retryable, see isRetryable). See ErrorCatalog.md for all error codes. Example: "VALID-N-001" - `isRetryable` (boolean, required) Indicates whether the error is retryable. If true, the request may succeed if retried. If false, the request will fail again with the same input. Authoritative over the code's letter: true for every R code and for the N codes the error catalog marks retryable (e.g. ENQRY-N-005, a draft model timeout). - `traceId` (string) Request trace identifier for debugging and correlation purposes. Example: "0HNJ2BG2TU3BU:00000001" - `errors` (object,null) Validation errors dictionary mapping field names to arrays of error messages. Only present for validation errors (VALID-N-001). Example: {"Date":["Availability date cannot be in the past."],"EndTime":["EndTime must be after StartTime."]} - `unmetRequirements` (array,null) Only present for USER-N-022 when the operator's password rules refused the password (BOO-1144): what the password is missing. Absent when Auth0's own policy refused it; then detail says why. Enum: "minLength", "uppercase", "lowercase", "number", "specialCharacter" - `resetWith` (string,null) Only present for USER-N-023 (BOO-1144): the call that sets the new password the user's operator asks for and clears the reset. A password changed on Auth0's forgotten-password page does not. Example: "PUT /users/me/password" ## Response 401 fields (application/json): - `type` (string) A URI reference [rfc9457] that identifies the problem type. This specification encourages that, when dereferenced, it provides human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank". - `title` (string, required) A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization. - `status` (integer, required) The HTTP status code [rfc9457, Section 3.1.12] generated by the origin server for this occurrence of the problem. - `detail` (string) A human-readable explanation specific to this occurrence of the problem. - `code` (string, required) Error code in the format RESOURCE-X-NNN where X is R (retryable) or N (usually non-retryable; a few N codes are retryable, see isRetryable). See ErrorCatalog.md for all error codes. Example: "VALID-N-001" - `isRetryable` (boolean, required) Indicates whether the error is retryable. If true, the request may succeed if retried. If false, the request will fail again with the same input. Authoritative over the code's letter: true for every R code and for the N codes the error catalog marks retryable (e.g. ENQRY-N-005, a draft model timeout). - `traceId` (string) Request trace identifier for debugging and correlation purposes. Example: "0HNJ2BG2TU3BU:00000001" - `errors` (object,null) Validation errors dictionary mapping field names to arrays of error messages. Only present for validation errors (VALID-N-001). Example: {"Date":["Availability date cannot be in the past."],"EndTime":["EndTime must be after StartTime."]} - `unmetRequirements` (array,null) Only present for USER-N-022 when the operator's password rules refused the password (BOO-1144): what the password is missing. Absent when Auth0's own policy refused it; then detail says why. Enum: "minLength", "uppercase", "lowercase", "number", "specialCharacter" - `resetWith` (string,null) Only present for USER-N-023 (BOO-1144): the call that sets the new password the user's operator asks for and clears the reset. A password changed on Auth0's forgotten-password page does not. Example: "PUT /users/me/password" ## Response 403 fields (application/json): - `type` (string) A URI reference [rfc9457] that identifies the problem type. This specification encourages that, when dereferenced, it provides human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank". - `title` (string, required) A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization. - `status` (integer, required) The HTTP status code [rfc9457, Section 3.1.12] generated by the origin server for this occurrence of the problem. - `detail` (string) A human-readable explanation specific to this occurrence of the problem. - `code` (string, required) Error code in the format RESOURCE-X-NNN where X is R (retryable) or N (usually non-retryable; a few N codes are retryable, see isRetryable). See ErrorCatalog.md for all error codes. Example: "VALID-N-001" - `isRetryable` (boolean, required) Indicates whether the error is retryable. If true, the request may succeed if retried. If false, the request will fail again with the same input. Authoritative over the code's letter: true for every R code and for the N codes the error catalog marks retryable (e.g. ENQRY-N-005, a draft model timeout). - `traceId` (string) Request trace identifier for debugging and correlation purposes. Example: "0HNJ2BG2TU3BU:00000001" - `errors` (object,null) Validation errors dictionary mapping field names to arrays of error messages. Only present for validation errors (VALID-N-001). Example: {"Date":["Availability date cannot be in the past."],"EndTime":["EndTime must be after StartTime."]} - `unmetRequirements` (array,null) Only present for USER-N-022 when the operator's password rules refused the password (BOO-1144): what the password is missing. Absent when Auth0's own policy refused it; then detail says why. Enum: "minLength", "uppercase", "lowercase", "number", "specialCharacter" - `resetWith` (string,null) Only present for USER-N-023 (BOO-1144): the call that sets the new password the user's operator asks for and clears the reset. A password changed on Auth0's forgotten-password page does not. Example: "PUT /users/me/password" ## Response 404 fields (application/json): - `type` (string) A URI reference [rfc9457] that identifies the problem type. This specification encourages that, when dereferenced, it provides human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank". - `title` (string, required) A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization. - `status` (integer, required) The HTTP status code [rfc9457, Section 3.1.12] generated by the origin server for this occurrence of the problem. - `detail` (string) A human-readable explanation specific to this occurrence of the problem. - `code` (string, required) Error code in the format RESOURCE-X-NNN where X is R (retryable) or N (usually non-retryable; a few N codes are retryable, see isRetryable). See ErrorCatalog.md for all error codes. Example: "VALID-N-001" - `isRetryable` (boolean, required) Indicates whether the error is retryable. If true, the request may succeed if retried. If false, the request will fail again with the same input. Authoritative over the code's letter: true for every R code and for the N codes the error catalog marks retryable (e.g. ENQRY-N-005, a draft model timeout). - `traceId` (string) Request trace identifier for debugging and correlation purposes. Example: "0HNJ2BG2TU3BU:00000001" - `errors` (object,null) Validation errors dictionary mapping field names to arrays of error messages. Only present for validation errors (VALID-N-001). Example: {"Date":["Availability date cannot be in the past."],"EndTime":["EndTime must be after StartTime."]} - `unmetRequirements` (array,null) Only present for USER-N-022 when the operator's password rules refused the password (BOO-1144): what the password is missing. Absent when Auth0's own policy refused it; then detail says why. Enum: "minLength", "uppercase", "lowercase", "number", "specialCharacter" - `resetWith` (string,null) Only present for USER-N-023 (BOO-1144): the call that sets the new password the user's operator asks for and clears the reset. A password changed on Auth0's forgotten-password page does not. Example: "PUT /users/me/password" ## Response 429 fields (application/json): - `type` (string) A URI reference [rfc9457] that identifies the problem type. This specification encourages that, when dereferenced, it provides human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank". - `title` (string, required) A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization. - `status` (integer, required) The HTTP status code [rfc9457, Section 3.1.12] generated by the origin server for this occurrence of the problem. - `detail` (string) A human-readable explanation specific to this occurrence of the problem. - `code` (string, required) Error code in the format RESOURCE-X-NNN where X is R (retryable) or N (usually non-retryable; a few N codes are retryable, see isRetryable). See ErrorCatalog.md for all error codes. Example: "VALID-N-001" - `isRetryable` (boolean, required) Indicates whether the error is retryable. If true, the request may succeed if retried. If false, the request will fail again with the same input. Authoritative over the code's letter: true for every R code and for the N codes the error catalog marks retryable (e.g. ENQRY-N-005, a draft model timeout). - `traceId` (string) Request trace identifier for debugging and correlation purposes. Example: "0HNJ2BG2TU3BU:00000001" - `errors` (object,null) Validation errors dictionary mapping field names to arrays of error messages. Only present for validation errors (VALID-N-001). Example: {"Date":["Availability date cannot be in the past."],"EndTime":["EndTime must be after StartTime."]} - `unmetRequirements` (array,null) Only present for USER-N-022 when the operator's password rules refused the password (BOO-1144): what the password is missing. Absent when Auth0's own policy refused it; then detail says why. Enum: "minLength", "uppercase", "lowercase", "number", "specialCharacter" - `resetWith` (string,null) Only present for USER-N-023 (BOO-1144): the call that sets the new password the user's operator asks for and clears the reset. A password changed on Auth0's forgotten-password page does not. Example: "PUT /users/me/password" ## Response 500 fields (application/json): - `type` (string) A URI reference [rfc9457] that identifies the problem type. This specification encourages that, when dereferenced, it provides human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank". - `title` (string, required) A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization. - `status` (integer, required) The HTTP status code [rfc9457, Section 3.1.12] generated by the origin server for this occurrence of the problem. - `detail` (string) A human-readable explanation specific to this occurrence of the problem. - `code` (string, required) Error code in the format RESOURCE-X-NNN where X is R (retryable) or N (non-retryable). See ErrorCatalog.md for all error codes. Example: "BOOK-N-001" - `isRetryable` (boolean, required) Indicates whether the error is retryable. If true, the request may succeed if retried. If false, the request will fail again with the same input. - `traceId` (string) Request trace identifier for debugging and correlation purposes. Example: "0HNJ2BG2TU3BU:00000001" ## Response default fields (application/json): - `type` (string) A URI reference [rfc9457] that identifies the problem type. This specification encourages that, when dereferenced, it provides human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank". - `title` (string, required) A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization. - `status` (integer, required) The HTTP status code [rfc9457, Section 3.1.12] generated by the origin server for this occurrence of the problem. - `detail` (string) A human-readable explanation specific to this occurrence of the problem. - `code` (string, required) Error code in the format RESOURCE-X-NNN where X is R (retryable) or N (non-retryable). See ErrorCatalog.md for all error codes. Example: "BOOK-N-001" - `isRetryable` (boolean, required) Indicates whether the error is retryable. If true, the request may succeed if retried. If false, the request will fail again with the same input. - `traceId` (string) Request trace identifier for debugging and correlation purposes. Example: "0HNJ2BG2TU3BU:00000001"