Raw schema
{
"type": "object",
"properties": {
"ref": {
"type": "string",
"description": "Hotel `ref` from `search_hotels` (e.g. 'TBO:1402689'). Alternative to supplierCode + supplierHotelId."
},
"supplierCode": {
"type": "string",
"description": "Supplier code (from `search_hotels`). Required if `ref` is omitted."
},
"supplierHotelId": {
"type": "string",
"description": "Supplier hotel id (from `search_hotels`). Required if `ref` is omitted."
},
"supplierRoomId": {
"type": "string",
"description": "Bookable room/rate id from the chosen room in `search_hotels`."
},
"checkIn": {
"type": "string",
"description": "Check-in date, ISO 8601 (YYYY-MM-DD)."
},
"checkOut": {
"type": "string",
"description": "Check-out date, ISO 8601 (YYYY-MM-DD)."
},
"rooms": {
"type": "integer",
"minimum": 1,
"maximum": 9,
"description": "Rooms (default 1)."
},
"adults": {
"type": "integer",
"minimum": 1,
"maximum": 10,
"description": "Adults (default 2)."
},
"children": {
"type": "integer",
"minimum": 0,
"maximum": 6,
"description": "Children (default 0)."
},
"childrenAges": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 18
},
"description": "Age of each child."
},
"currency": {
"type": "string",
"description": "ISO 4217 currency of `price`/`totalPrice` (e.g. 'USD')."
},
"hotelName": {
"type": "string",
"description": "Hotel name (from `search_hotels`)."
},
"roomName": {
"type": "string",
"description": "Room name (from the chosen room)."
},
"price": {
"type": "number",
"description": "Total price to charge (use `grandTotal` from `get_checkout_quote`)."
}
},
"required": [
"supplierRoomId",
"hotelName",
"roomName",
"checkIn",
"checkOut",
"price",
"currency"
],
"additionalProperties": false
}