Skip to content

Booking Unavailable Error

422 response returned from PUT /v2/bookings/{uuid}/{status} when the requested booking cannot be confirmed because the date or timeslot is unavailable. Structurally a superset of ErrorResponse — the alternatives field is only present when the partner's API key has the availability.alternatives permission enabled.

messagestring

A human-readable error message.

Example:"Arrival date is unavailable. Please choose another one."
codestring

An internal error code.

Example:"GEN-UNPROCESSABLE"
http_codeinteger
Example:422
alternativesobject(Availability Alternatives)

Structured suggestions returned alongside a 422 booking-confirmation error when the requested date/timeslot is unavailable. Only emitted when the partner's API key has the availability.alternatives permission enabled — otherwise the error response is byte-identical to before this feature shipped.

The shape depends on whether the product is timeslotted and on whether the requested date still has spare capacity:

  • Timeslotted product, requested date has other timeslots free: every remaining timeslot on that date with qty > 0 is returned under same_date_timeslots; nearby_dates is empty.
  • Timeslotted product, whole day sold out: the single next future date (scanned up to 7 days forward) that has any timeslot with stock is returned as one entry under nearby_dates, with its available timeslots inline.
  • Non-timeslotted product: up to 3 nearby future dates with qty > 0 are returned under nearby_dates; same_date_timeslots is empty.

Reported qty values are the largest qty any single price category could book for that slot. Partners should still validate against a fresh availability check before offering an alternative to a customer — inventory can change at any moment.

{ "message": "Arrival date is unavailable. Please choose another one.", "code": "GEN-UNPROCESSABLE", "http_code": 422, "alternatives": { "requested": { … }, "same_date_timeslots": [ … ], "nearby_dates": [ … ] } }