Booking Search

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

GET
1
https://api.airship.co.uk/v1/bookings?account_id={account_id}
Copied!

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

Body
Response
1
{
2
"data": {
3
"element_01": "My-Booking-Reference"
4
}
5
}
Copied!
1
{
2
"current_page": 1,
3
"data": [
4
{
5
"stage_value_status": "Deposit Secured",
6
"data_element_01": "My-Booking-Reference",
7
"data_element_03": "Large Party",
8
"data_element_20": "beef",
9
"id": 12116500,
10
"account_id": "806",
11
"contact_id": "47426742",
12
"unit_id": "13835",
13
"stage_value": "69",
14
"type_id": "51",
15
"datetime": "2021-04-27 20:30:00",
16
"source_id": "16",
17
"party_datetime": "2021-04-27 20:30:00",
18
"party_size": "10",
19
"deposit_paid": "10.00",
20
"hpbr_food": "0.00",
21
"hpbr_drink": "0.00",
22
"hpbr_entertainment": "0.00",
23
"updated_at": "2021-04-27 20:30:00"
24
}
25
],
26
"first_page_url": "https://api.airship.co.uk/v1/bookings?page=1",
27
"from": 1,
28
"last_page": 1,
29
"last_page_url": "https://api.airship.co.uk/v1/bookings?page=1",
30
"next_page_url": null,
31
"path": "https://api.airship.co.uk/v1/bookings",
32
"per_page": 100,
33
"prev_page_url": null,
34
"to": 1,
35
"total": 1
36
}
Copied!