Booking Update

Overview

Airship allows partners to update bookings within the airship platform, to enable booking updates / cancelations / no shows to be updated.
To update a booking, you'll need an Airship booking ID to be passed in the URL, which can be found from the booking search.

Endpoint

POST
1
https://api.airship.co.uk/v1/bookings/{booking_id}
Copied!

Configuration

Path Parameters

Field
Notes
booking_id
The booking ID is Airships unique reference for the booking, and represents the booking that you are attempting to update. The booking ID can be found via the Booking Search endpoint

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. More details on authentication can be found here

Query parameters

The booking fields which can be accepted in this section can be found in the Append Booking Data section, with the addition of account_id (required)
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.

Basic update booking payload

Body
Response
1
{
2
"account_id": 3,
3
"enquiry_datetime": "2021-04-27 20:30:00",
4
"updated_at": "2021-04-27 20:30:00",
5
"source_id": 16,
6
"party_size": 10,
7
"stage_value": 69,
8
"type_id": 51,
9
"unit_id": 67,
10
"party_datetime": "2021-04-27 20:30:00",
11
"party_enquirytime": "2021-04-27 21:00:06",
12
"deposit_paid": 0.01,
13
"hpbr_drink": 0,
14
"hpbr_food": 0,
15
"hpbr_entertainment": 0,
16
"data": {
17
"element_01": "My-Booking-Reference",
18
"element_03": "juice",
19
"element_20": "chicken"
20
},
21
"notes": [
22
{
23
"text": "Test note on bookingID",
24
"time": "2021-04-27 21:00:06"
25
}
26
]
27
}
Copied!
1
{
2
"stage_value_status": "Deposit Secured",
3
"data_element_01": "My-Booking-Reference",
4
"data_element_03": "juice",
5
"data_element_20": "chicken",
6
"comments": [
7
{
8
"id": 455628,
9
"text": "Test note on bookingID",
10
"created_at": "2021-08-13 15:24:54"
11
},
12
{
13
"id": 457554,
14
"text": "Test note on bookingID",
15
"created_at": "2021-08-26 13:43:49"
16
}
17
],
18
"id": 12116500,
19
"account_id": "3",
20
"contact_id": "47426742",
21
"unit_id": 67,
22
"stage_value": 69,
23
"type_id": 51,
24
"datetime": "2021-04-27 20:30:00",
25
"source_id": 16,
26
"party_datetime": "2021-04-27 20:30:00",
27
"party_size": 10,
28
"deposit_paid": 0.01,
29
"hpbr_food": 0,
30
"hpbr_drink": 0,
31
"hpbr_entertainment": 0,
32
"updated_at": "2021-04-27 20:30:00"
33
}
Copied!