10 Get booking by GAC reference

View as Markdown
Fetches one booking in full by the `ref_no` we generate, for example `GAC-6A8C9DA2A683B`. Same response as **09 Get booking by ID**. Useful when a customer quotes the reference from their confirmation email and you do not have our numeric id to hand. | 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. | Remember that `ref_no` changes if you replace the booking without echoing it back. Your own `customer_reference` is the more stable handle, so **11 Get booking by your reference** is usually the better lookup to build against.

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