Accommodation cancelation
Last updated
Last updated
PATCH
/api/partners/{partner_id}/bookings/{booking_id}
The Modify Booking API endpoint allows partners to update a confirmed booking. Partners can provide the updated values and insured parties for the booking attributes for booking modification. This endpoint requires a valid access token obtained from the Authentication.
Depending on the policies, booking modification may result in additional costs.
Path parameters
Parameter | Type | Description |
---|---|---|
Headers
Name | Value |
---|---|
Body
Name | Type | Description |
---|---|---|
Response
partner_id
string
The partner identifier provided during onboarding
booking_id
string
Unique identifier of the booking returned in the create booking endpoint
Accept
application/json
Content-Type
application/json
Authorization
Bearer <token>
policies
array
policies[].id
string
Unique identifier of the booking policy
policies[].update_fields
object
All booking attributes that need to be updated should be specified in this object
policies[].update_fields.policy_start_date
string/datetime
Updated policy start date
policies[].update_fields.policy_end_date
string/datetime
Updated policy end date
policies[].update_fields.trip_start_date
string/datetime
Updated start date of the accommodation
policies[].update_fields.trip_end_date
string/datetime
Updated end date of the accommodation
policies[].update_fields.departure_country
string
Two letters country code of the departure country
policies[].update_fields.number_of_adults
integer
The number of adults covered in this policy
policies[].update_fields.number_of_children
integer
The number of children covered in this policy
policies[].update_fields.total_tickets_price
decimal
Total cost of the accommodation
policies[].update_fields.insured
array
A list of insured
policies[].update_fields.insured[].first_name
string
First name
policies[].update_fields.insured[].last_name
string
Last name
policies[].update_fields.insured[].email
string
Email address
policies[].update_fields.insured[].country
string
Two letters country code
policies[].update_fields.insured[].address1
string
Address line 1
policies[].update_fields.insured[].address2
string
Address line 2
policies[].update_fields.insured[].city
string
City of residence
policies[].update_fields.insured[].region
string
Region
policies[].update_fields.insured[].postcode
string
Postcode
policies[].update_fields.insured[].phone
string
Phone number
policies[].update_fields.insured[].birth_date
string
Date of birth
policies[].update_fields.insured[].company
string
Company name