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
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"
}
}
ID of the resource
URI of the resource
{
"id": 887124,
"href": "context/contextid/accommodation/887124"
}