Create accommodation on a booking
POST /[context]/[contextId]/Accommodation
Context in Request URI should be 'bookings'
ContextId in Request URI should be Booking ID
Check in Date
Check out Date
URIs of customers to book on the accommodation that has already been added to booking Existing customers on the accommodation will not be affected – this only books new customers on the accommodation
URI of relevant product This can be retrieved via the related product (eg: relatedAccommodation, relatedTransfers, relatedSightseeing etc.) property in Retrieve Trip Product
An optional unique identifier for preventing duplicate components in a booking. When provided, this reference is checked to ensure the same component (trip or service) is not added more than once. Partners can use this to avoid duplicate entries in component creation.
URI of the resource
URI of the resource
{
"checkInDate": "2016-12-20",
"checkOutDate": "2016-12-22",
"customers": [
{
"href": "/bookings/5057124/customers/4945397"
},
{
"href": "/bookings/5057124/customers/4945397"
}
],
"product": {
"href": "/products/91066"
},
"externalReference": null
}
ID of the resource
URI of the resource
{
"id": 887124,
"href": "context/contextid/accommodation/887124"
}