# Every end time from one start time, available or not For a booking type the guest books by length (a start and an end time), every length it allows from one exact start time, each marked available or not (BOO-1372). The lengths run from the booking type's minimum to its maximum for the date and party size, at its duration interval: the same bounds availability reports as minDuration, maxDuration and durationInterval. A length is available when availability, asked for that start time, answers it: the TMS's own answer for that length at that time, after the operator's rules for your channel, the booking window and any table reshuffle. type is then book or request, as in availability. Otherwise type is null and unavailableReason says why. A start time that can't be booked at all returns every length unavailable. Limits: - Collins booking types only. Only Collins answers each length at a start time; any other TMS gets a 400. - A start time too close to now to book (the booking type's advance notice) returns every length unavailable. - A booking type with no duration rules has a single length, the default 90 minutes. - startTime=00:00 can't be told apart from "any time" in Collins' answer, so its lengths aren't checked one by one. Endpoint: GET /venues/{compositeId}/availability/end-times Version: 12.19.0 Security: Live, Sandbox ## Path parameters: - `compositeId` (string, required) The product's composite id ({operatorId}|{rmsSlug}|{venueId}|{productId}). ## Query parameters: - `date` (string, required) The booking date (the venue's trading day, as for availability). - `startTime` (string, required) The start time, HH:mm. Example: "18:30" - `partySize` (integer, required) ## 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): - `startTime` (string, required) The start time asked for, HH:mm. Example: "18:30" - `endTimes` (array, required) In length order, shortest first. - `endTimes.duration` (integer, required) Length of the booking in minutes. Example: 90 - `endTimes.endTime` (string, required) The end time, HH:mm (past midnight, the next day's clock time). Example: "20:00" - `endTimes.type` (string,null, required) book or request when the length can be booked from the start time; null when it can't (see unavailableReason). Enum: "book", "request" - `endTimes.unavailableReason` (string,null) Why this length can't be booked from the start time; null when it can (type is set). Example: "Not available for this length" ## 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 503 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"