Retrieve accommodation components by Booking ID
GET /[context]/[contextId]/Accommodation
Context in Request URI should be 'bookings'
ContextId in Request URI should be Booking ID
List of accommodation components
URI of accommodation product
Name of accommodation product
Display Name of accommodation product
Room type for accommodation
Check-in date for accommodation
Check-out date for accommodation
Number of nights set for accommodation
Suburb of accommodation
City of accommodation
Country of accommodation
Currency
Total gross price for all customers on accommodation
Gross price minus any commission for the accommodation
URI used to retrieve all customers on accomodation
Key/value pairs indicating the number of customers per status on the accommodation; e.g.: { ''confirmed'': 2, ''cancelled'': 1 }
List of customer statuses along with url for each customer on that status
First street address of the accommodation
Second Street address of the accommodation
Phone Number
Post Code
Display Name of accommodation location
ID of the resource
URI of the resource
Sequence of product
Customers status
Url of Customers in relevant status
URI of the resource
URI of the resource
{
"accommodation": [
{
"product": {
"href": "/products/91066"
},
"accommodationName": "Hilton hotel",
"accommodationDisplayName": "Hilton hotel",
"roomType": "Single",
"startDate": "2016-12-20",
"finishDate": "2016-12-22",
"numberOfNights": 1,
"suburb": "Southbank",
"city": "Melbourne",
"country": "Australia",
"currency": "AUD",
"totalPrice": 1250.0,
"netPrice": 1120.75,
"customers": {
"href": "/accommodation/887124/customers"
},
"customerStatuses": {
"confirmed": 2,
"tentative": 1
},
"customerStatusIds": [
{
"status": "tentative",
"customers": [
{
"href": "/context/5057124/customers/4945398"
},
{
"href": "/context/5057124/customers/4945398"
}
]
},
{
"status": "tentative",
"customers": [
{
"href": "/context/5057124/customers/4945398"
},
{
"href": "/context/5057124/customers/4945398"
}
]
}
],
"streetAddress1": "street address 1",
"streetAddress2": "street address 2",
"phoneNumber": "+66 12312312",
"postCode": "12345",
"locationName": "Hotel Hong Ngoc Cochinchine",
"id": 887124,
"href": "context/contextid/accommodation/887124",
"sequence": "202403312359580000"
},
{
"product": {
"href": "/products/91066"
},
"accommodationName": "Hilton hotel",
"accommodationDisplayName": "Hilton hotel",
"roomType": "Single",
"startDate": "2016-12-20",
"finishDate": "2016-12-22",
"numberOfNights": 1,
"suburb": "Southbank",
"city": "Melbourne",
"country": "Australia",
"currency": "AUD",
"totalPrice": 1250.0,
"netPrice": 1120.75,
"customers": {
"href": "/accommodation/887124/customers"
},
"customerStatuses": {
"confirmed": 2,
"tentative": 1
},
"customerStatusIds": [
{
"status": "tentative",
"customers": [
{
"href": "/context/5057124/customers/4945398"
},
{
"href": "/context/5057124/customers/4945398"
}
]
},
{
"status": "tentative",
"customers": [
{
"href": "/context/5057124/customers/4945398"
},
{
"href": "/context/5057124/customers/4945398"
}
]
}
],
"streetAddress1": "street address 1",
"streetAddress2": "street address 2",
"phoneNumber": "+66 12312312",
"postCode": "12345",
"locationName": "Hotel Hong Ngoc Cochinchine",
"id": 887124,
"href": "context/contextid/accommodation/887124",
"sequence": "202403312359580000"
}
]
}