Raw schema
{
"type": "object",
"properties": {
"offer_id": {
"type": "string",
"description": "offer_id from search_hotels or get_hotel, for these dates and adults."
},
"hotel_id": {
"type": "string",
"description": "The hotel id the offer belongs to."
},
"checkin": {
"type": "string",
"description": "Check-in date, YYYY-MM-DD, today or later."
},
"checkout": {
"type": "string",
"description": "Check-out date, YYYY-MM-DD, 1 to 30 nights after check-in."
},
"adults": {
"description": "Adults in the one room, 1 to 8. Default 2.",
"type": "integer",
"minimum": 1,
"maximum": 8
},
"currency": {
"description": "ISO 4217 currency for the prices, default EUR.",
"type": "string",
"minLength": 3,
"maxLength": 3
},
"nationality": {
"description": "Guest nationality, ISO 3166 alpha-2 (prices can depend on it). Default from the client's language, else NL.",
"type": "string",
"minLength": 2,
"maxLength": 2
},
"guest_first_name": {
"type": "string",
"description": "As on the ID shown at check-in."
},
"guest_last_name": {
"type": "string",
"description": "As on the ID shown at check-in."
},
"guest_email": {
"type": "string",
"description": "The confirmation goes here; the guest needs it to cancel."
},
"guest_phone": {
"type": "string",
"description": "With country code, e.g. +31 6 1234 5678."
},
"remarks": {
"description": "Special requests for the hotel, not guaranteed.",
"type": "string",
"maxLength": 500
},
"expected_total": {
"description": "The total you saw for this offer, so a change is flagged.",
"type": "number"
},
"idempotency_key": {
"description": "Any unique string; the same key returns the same booking instead of a second one.",
"type": "string",
"maxLength": 200
}
},
"required": [
"offer_id",
"hotel_id",
"checkin",
"checkout",
"guest_first_name",
"guest_last_name",
"guest_email",
"guest_phone"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}