Booking Search by data_element

Overview

Airship allows partners to query bookings on certain fields. If a booking reference is provided when the data is passed to Airship, then the /bookings endpoint can be used to search for that booking, and return key information about it.

Airship can store up to 20 dynamic fields against a booking, and any of these values can be used with the booking search.

Endpoint

https://api.airship.co.uk/v1/bookings?account_id={account_id}

Configuration

Path Parameters

Field

Notes

account_id

The account ID represents the account that you are searching bookings in. If you are unsure of what your account ID is, ask our support team to confirm.

Headers

Field

Notes

Authentication (bearer token)

The authentication token is linked to the account that you are searching bookings in. If you are unsure of what your Authentication token is, ask our support team to confirm.

Query Parameters

Field

Notes

element_01

Dynamic field provided by 3rd party at the point of creating the booking in airship. This is typically the booking reference

element_02

Dynamic field

...

Dynamic field

element_20

Dynamic field

Basic booking search payload

{
    "data": {
            "element_01": "My-Booking-Reference"
    }
}

Last updated