Contains Rooms API specification
Contains Rooms API specification
curl -i -X GET \
'https://supply-xml.booking.com/rooms-api/properties/{propertyId}/units?debug_info=false'
$.unit_type[*].id
and $.unit_type[*].is_active
) for unit creation/update$.unit_type[*].valid_property_categories
)BEDROOM_SUBROOM
and optionally one or more LIVING_ROOM_SUBROOM
GUEST_ROOM
One or more floors where the unit is located; 0 is a ground floor
Maximum number of children eligible for the children rate (the rest are charged as adults), must be less than or equal to number of children. If not specified, defaults to max_children
.
curl -i -X POST \
'https://supply-xml.booking.com/rooms-api/properties/{propertyId}/units' \
-H 'Content-Type: application/json' \
-d '{
"configuration": {
"unit_type_id": 31,
"rooms": [
{
"type": "BEDROOM_SUBROOM",
"bed_configurations": [
{
"beds": [
{
"bed_type_id": 6,
"bed_count": 1
},
{
"bed_type_id": 1,
"bed_count": 1
}
],
"is_default_configuration": true
}
]
},
{
"type": "BEDROOM_SUBROOM",
"bed_configurations": [
{
"beds": [
{
"bed_type_id": 1,
"bed_count": 3
}
],
"is_default_configuration": true
}
]
},
{
"type": "LIVING_ROOM_SUBROOM",
"bed_configurations": [
{
"beds": [
{
"bed_type_id": 5,
"bed_count": 1
}
],
"is_default_configuration": true
}
]
},
{
"type": "LIVING_ROOM_SUBROOM"
}
]
},
"unit_name_id": 4180,
"number_of_units": 5,
"smoking_policy": "SMOKING_AND_NONSMOKING",
"size": {
"value": 155,
"unit": "SQM"
},
"partner_reference_name": "Example two-bedroom villa",
"floor_numbers_located_on": [
2
],
"occupancy_details": {
"max_guests": 5,
"max_adults": 5,
"max_children": 4,
"max_infants": 4,
"max_infants_on_top": 0
},
"max_children_that_pay_children_rate": 2,
"extra_beds_configuration": {
"extra_beds": 1,
"cribs": 0,
"is_crib_and_extra_bed_allowed": false
}
}'
curl -i -X DELETE \
'https://supply-xml.booking.com/rooms-api/properties/{propertyId}/units/{unitId}'
One or more floors where the unit is located; 0 is a ground floor
Maximum number of children eligible for the children rate (the rest are charged as adults), must be less than or equal to number of children. If not specified, defaults to max_children
.
Contains unit name (EN_GB
locale) for any unit name ID, including those missing in meta (for debug purposes only; read only)
curl -i -X PATCH \
'https://supply-xml.booking.com/rooms-api/properties/{propertyId}/units/{unitId}' \
-H 'Content-Type: application/json' \
-d '{
"configuration": {
"unit_type_id": 1,
"rooms": [
{
"type": "BEDROOM_SUBROOM",
"bed_configurations": [
{
"beds": [
{
"bed_type_id": 3,
"bed_count": 1
},
{
"bed_type_id": 1,
"bed_count": 1
}
],
"is_default_configuration": true
}
]
},
{
"type": "LIVING_ROOM_SUBROOM",
"bed_configurations": [
{
"beds": [
{
"bed_type_id": 5,
"bed_count": 1
}
],
"is_default_configuration": true
}
]
}
]
}
}'