⇡ POST /booking_update
You can update an existing booking, for example to add or remove the number of tickets, or change the customer details / travel date.
If the poduct has freesale = false; to be able to update the travel date, number of tickets or the product/option/departure, you must first make a reservation request, which will be provided in this request as reservation. You only need to make the reservation for the differences you plan to make to the booking. For example if you want to add an extra adult to a booking of 2 adults, you only need to make a reservation for 1 adult for the same day.
The /booking_update request must be made as a POST request to https://api.cityconnect.net/v1/booking_update. You must use your email and token created in your account as HTTP Basic Authentication header to authenticate the request.
For example:
{
"booking": "VIATOR0000424123",
"reservation": "RESERVATION00004215",
"supplier": "[email protected]",
"date": "2017-10-08",
"time": "10:30",
"adult": 3,
"child": 1
}
The parameters are identical to the /booking_confirmation request, except for the /booking_update request which will contain a booking field which is equal to the reference you provided in the original booking confirmation.
Your response to this should be a HTTP 200 OK response, and the body should be identical to the booking confirmation response.
Note it will contain ALL the tickets and barcodes, even if no changes were made to the tickets. All the barcodes and the supplier reference may change, so make sure you update your records accordingly.
{
"mobile": true,
"reference": "BOOKING00004232",
"barcode": "128465552",
"tickets": [
{ "type": "adult", "barcode": "7485936482" },
{ "type": "adult", "barcode": "2512356846" },
{ "type": "adult", "barcode": "1212482144" },
{ "type": "child", "barcode": "9257377533" }
]
}
Note you cannot update a booking:
- On or after the travel date
- If one or more of the tickets have been redeemed already
Updated about 8 years ago
