11 Get booking by your reference

View as Markdown
Fetches one booking in full by the `settings.customer_reference` you supplied when you created it. Same response as **09 Get booking by ID**. This is the most useful lookup for an integration, because the reference is yours: you know it before we reply, it never changes, and it survives a replace. Send one on every quote. | Status | `error_code` | When | | --- | --- | --- | | `200` | — | Found. `message` is `Successfully!` | | `404` | `booking_not_found` | Unknown reference, or a booking that is not yours. | | `401` | `unauthenticated` | Bearer token missing, invalid or expired. | | `500` | `server_error` | Our fault. | **Use it to recover from a failed create.** There is no idempotency on quote creation, so if a request times out you cannot tell whether the booking was made. Retry with the same `customer_reference`: a `422` with `errors["settings.customer_reference"]` proves the first attempt landed, and this endpoint then hands you that booking. That is the safest retry pattern available today. References are unique per company, so yours cannot collide with another partner's.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Response

OK
messagestring
statusinteger
responseTimestring
tracelist of any
dataobject

Errors

404
Not Found Error