Managing listings
Use this endpoint to create listings, add rooms, add bed configurations, set occupancy, among other tasks.
You can:
Discover relevant meta information
Before you can perform many of the above tasks, you must retrieve Booking.com specific meta information. For more information, see the Rooms API meta endpoint specification.
The meta endpoint or simply meta provides a complete set of listing types, listing names and bed types IDs supported by Rooms API. All mentioned IDs are mandatory for the listing creation. For example, you can:
- Create a listing of type
Apartment
(listing type ID1
) namedApartment with Sea View
(listing name ID44
) with aLarge bed (King size)
(bed type ID6
) inside. - Create a listing of type
Double
(listing type ID9
) namedDeluxe Double Room
(listing name ID255
) with twoSingle bed
(bed type ID1
) inside.
Each listing type object in meta has a set of important attributes for you to consider before creating a listing:
is_active
- defines if a listing type can be used to create or update listings; inactive listing types are read-only.allowed_property_categories
- defines a set of property categories for which a given listing type can be created.is_multi_room
- defines if a listing type is multi-room or mono-room.
Understand the difference between multi-room and mono-room listings
Type | Example listing types | Multiple rooms supported | Type of rooms supported | Multiple bed conigurations supported |
---|---|---|---|---|
Multi-room listing | Apartment , Villa , Suite | yes | BEDROOM_SUBROOM , LIVING_ROOM_SUBROOM | no |
Mono-room listing | Studio , Double | no | GUEST_ROOM | yes |
Creating listings
POST
https://supply-xml.booking.com/rooms-api/properties/{propertyId}/listings
Path parameters
The following table describes the elements you must specify in the path:
Element | Description | Type | Required/ Optional | Notes |
---|---|---|---|---|
propertyId | Specifies the unique ID of the property. | integer | required | Must be valid and assigned to your account |
Request body parameters
The following table describes the elements you can add in the request body:
Element | Description | Type | Required/ Optional | Default value | Root parameter in HIN |
---|---|---|---|---|---|
listing_name_id | Specifies the listing name ID that is part of the listing type | string | required | n/a | Description > Text |
number_of_listings | Specifies the total number of listings available at the property | integer | optional | 1 | Room > Quantity |
smoking_policy | Specifies the smoking policy in the listing | enumerated string | optional | SMOKING_AND_NONSMOKING | Room > NonSmoking |
size | Contains the listing size details | object | optional | null | |
> value | Specifies the listing size in the chosen unit | integer | required1 | n/a | Room > SizeMeasurement |
> unit | Specifies the unit of measurement to represent the listing size | enumerated string | required1 | n/a | Room > SizeMeasurementUnit |
partner_reference_name | Specifies a custom listing name visible in the extranet and API response | string | optional | null | New field |
room_located_on_floors | Specifies the floor where the listing is located | array of integer(s) | optional | null | New field |
configuration | Contains the listing configuration | object | required | n/a | |
> listing_type_id | Specifies the listing type ID | enumerated string | required | n/a | Room > RoomType |
> rooms | Contains the room details provided the listing type supports rooms | array of objects | required | n/a | |
>> type | Specifies the room type supported by the listing type | enumerated string | required | n/a | SubRoom > RoomType |
>> bed_configurations | Contains the details of the bed available in the room | object | conditional2 | n/a | SubRoom > Amenities |
>>> beds | Contains the bed type and the total number of beds | array of objects | required1 | n/a | |
>>>> bed_type_id | Specifies the bed type ID supported by the listing type | enumerated integer | required1 | n/a | AmenityCode (or RoomAmenityCode) |
>>>> bed_count | Specifies the total number of beds of the type specified above | integer | required1 | n/a | Quantity (or Value) |
>>> is_default_configuration | Specifies whether the specified bed configuration is default for the listing/room | boolean | required1 | n/a | Configuration |
occupancy | Contains the occupancy details of the listing | object | optional | n/a | - |
> max_guests | Specifies the maximum guest occupancy for the listing | integer | optional | 1 | Occupancy > MaxOccupancy |
> max_adults | Specifies the maximum adult occupancy for the listing | integer | optional | 1 | Occupancy > MaxAdultOccupancy |
> max_children | Specifies the maximum child occupancy for the listing | integer | optional | 0 | Occupancy > MaxChildOccupancy |
> max_children_that_pay_children_rate | Specifies the maximum number of children eligible for the child rate | integer | optional | 0 | TPA_Extensions > MaxChildPayableOccupancy |
extra_beds_configuration | Contains the extra beds details for the listing | object | optional | n/a | |
> extra_beds | Specifies the total number of extra beds available on request per listing/room | integer | optional | 0 | Quantities > MaxRollaways |
> cribs | Specifies the total number of extra cribs available on request per listing/room | integer | optional | 0 | Quantities > MaxCribs |
> is_crib_and_extra_bed_allowed | Specifies whether guests can request both the extra bed and crib in the listing/room | boolean | optional | false | New field |
1 - required only if a parent field is provided
2 - required for room types GUEST_ROOM
and BEDROOM_SUBROOM
, optional for LIVING_ROOM_SUBROOM
Request body validations
Request body is subject to validation against a set of rules listed below.
Generic validation rules
Validation rules in the table below apply to any listing created or updated using Rooms API.
Validation rule | Related fields | Error description if violated |
---|---|---|
Listing type ID provided must exist in meta and be active | configuration.listing_type_id | Listing type is inactive or does not exist |
Listing type must be allowed for a property | configuration.listing_type_id | Listing type not allowed for selected property type |
Listing name ID provided must exist in meta | listing_name_id | Listing name does not exist |
Smoking policy is one of SMOKING , NONSMOKING , SMOKING_AND_NONSMOKING | smoking_policy | |
Number of listings must be between 0 and 32000 | number_of_listings | Number of listings is invalid |
Size value must be between 0 and 9999.99 | size.value | Size value must be between 0 and 9999.99 |
Size unit must be of type SQM or SQFT | size.unit | |
At least one bed should be added to each bed configuration provided in the request | configuration.rooms[*].bed_configurations | At least 1 bed should be added to each bed configuration |
Bed type IDs provided in the request must exist in meta and be active | configuration.rooms[*].bed_configurations[*].beds[*].bed_type_id | Bed type is inactive or does not exist |
Bed types IDs should not be repeated within a single bed configuration | configuration.rooms[*].bed_configurations[*].beds[*].bed_type_id | Bed types should not be repeated within a single bed configuration |
Exactly one default bed configuration is mandatory for each room provided | configuration.rooms[*].bed_configurations[*].is_default_configuration | Exactly 1 default bed configuration is mandatory |
Number of beds must be between 1 and 255 | configuration.rooms[*].bed_configurations[*].beds[*].bed_count | Number of beds must be between 1 and 255 |
Maximum overall number of guests is between 1 and 50 | occupancy.max_guests | |
Maximum number of adults is between 1 and 50 | occupancy.max_adults | |
Maximum number of children is between 1 and 49 | occupancy.max_children | |
Maximum number of adults cannot exceed the maximum number of guests | occupancy.max_guests , occupancy.max_adults , | Maximum number of guests must be greater than or equal to number of adults and less than or equal to sum of adults and children |
Maximum number of children must be less than maximum number of guests | occupancy.max_guests , occupancy.max_children | Number of children must be less than maximum number of guests |
Maximum number of guests cannot exceed the maximum number of adults and children combined | occupancy.max_guests , occupancy.max_adults , occupancy.max_children | Maximum number of guests must be greater than or equal to number of adults and less than or equal to sum of adults and children |
Number of children eligible for the children rate must be less than or equal to number of children | occupancy.max_children , max_children_that_pay_children_rate | Number of children eligible for the children rate must be less than or equal to number of children |
Maximum number of extra beds provided must be between 0 and 100 | extra_beds_configuration.extra_beds | |
Maximum number of cribs provided must be between 0 and 100 | extra_beds_configuration.cribs |
Validation rules specific for multi-room listings
A multi-room listing is any listing which type has is_multi_room = false
flag in meta.
Validation rules in the table below apply to multi-room listings only.
Validation rule | Related fields | Error description if violated |
---|---|---|
Room types provided must be of types BEDROOM_SUBROOM or LIVING_ROOM_SUBROOM | configuration.rooms[*].type | Room type is not allowed for selected (multi-room) listing type |
At least one bedroom must be provided | configuration.rooms | At least 1 room of type BEDROOM_SUBROOM is mandatory for selected (multi-room) listing type |
Number of bedrooms must be between 1 and 20 | configuration.rooms | Number of BEDROOM_SUBROOM rooms must be between 1 and 20 |
Number of living rooms must be between 1 and 5 | configuration.rooms | Number of LIVING_ROOM_SUBROOM rooms must be between 1 and 5 |
Valid number of bed confgiurations is provided: exactly one for BEDROOM_SUBROOM , not more than one for LIVING_ROOM_SUBROOM | configuration.rooms[*].bed_configurations | Room type BEDROOM_SUBROOM must have exactly 1 bed configuration; room type LIVING_ROOM_SUBROOM can not have more than 1 bed configuration |
Validation rules specific for mono-room listings
A mono-room listing is any listing which type has is_multi_room = false
flag in meta.
Validation rules in the table below apply to mono-room listings only.
Validation rule | Related fields | Error description if violated |
---|---|---|
Room type provided must be of type GUEST_ROOM | configuration.rooms[*].type | Room type is not allowed for selected (mono-room) listing type |
Exactly one room of type GUEST_ROOM must be provided | configuration.rooms | Selected (mono-room) room listing type must have exactly 1 room of type GUEST_ROOM |
At least one bed configuration is provided | configuration.rooms[*].bed_configurations | Room type GUEST_ROOM must have at least 1 bed configuration |
Rules and validations specific for certain listing types
Validation rules in the table below apply only to specific listing types such as Single
, Dormitory Room
and Bed in Dormitory
.
Validation rule | Related fields | Error description if violated |
---|---|---|
For listing type 10 (Single ) maximum number of adults must be exactly 1 | configuration.listing_type_id , occupancy.max_adult_occupancy | Maximum number of adults must be exactly 1 for selected listing type |
For listing type ID 25 (Dormitory Room ) maximum number of adults must be 2 or more | configuration.listing_type_id , occupancy.max_adult_occupancy | Maximum number of adults must be 2 or more for selected listing type |
For listing type ID 25 (Dormitory Room ) at least two beds must be added to each bed configuration | configuration.rooms[*].bed_configurations[*].beds | At least 2 beds must be added to each bed configuration for selected listing type |
For listing type ID 26 (Bed in Dormitory ) exactly one bed configuration must be provided | configuration.rooms[*].bed_configurations | Exactly 1 bed configuration must be provided for selected listing type |
For listing type ID 26 (Bed in Dormitory ) exactly one bed must be added to bed configuration | configuration.rooms[*].bed_configurations[*].beds | Exactly 1 bed must be added to bed configuration for selected listing type |
Request body example
For more request examples for various use cases, see the examples in the Try it section of the POST method in the Open API specification.
For example, the following request creates a multi-room listing with two bedrooms and one living room:
{ "configuration": { "listing_type_id": 1, "rooms": [ { "type": "BEDROOM_SUBROOM", "bed_configurations": [ { "beds": [ { "bed_type_id": 6, "bed_count": 1 } ], "is_default_configuration": true } ] }, { "type": "BEDROOM_SUBROOM", "bed_configurations": [ { "beds": [ { "bed_type_id": 4, "bed_count": 1 } ], "is_default_configuration": true } ] }, { "type": "LIVING_ROOM_SUBROOM", "bed_configurations": [ { "beds": [ { "bed_type_id": 7, "bed_count": 1 } ], "is_default_configuration": true } ] } ] }, "listing_name_id": 138547, "number_of_listings": 5, "smoking_policy": "SMOKING_AND_NONSMOKING", "size": { "value": 155.0, "unit": "SQM" }, "partner_reference_name": "Park facing Apartment", "floor_numbers_located_on": [ 2 ], "occupancy": { "max_guests": 5, "max_adults": 5, "max_children": 4, "max_children_that_pay_children_rate": 2 }, "extra_beds_configuration": { "extra_beds": 1, "cribs": 0, "is_crib_and_extra_bed_allowed": false } }
Response body example
The following is a response snippet:
{ "data": { "listing_id": 813518812, "configuration": { "listing_type_id": 1, "rooms": [ { "type": "BEDROOM_SUBROOM", "bed_configurations": [ { "beds": [ { "bed_type_id": 6, "bed_count": 1 } ], "is_default_configuration": true } ] }, { "type": "BEDROOM_SUBROOM", "bed_configurations": [ { "beds": [ { "bed_type_id": 4, "bed_count": 1 } ], "is_default_configuration": true } ] }, { "type": "LIVING_ROOM_SUBROOM", "bed_configurations": [ { "beds": [ { "bed_type_id": 7, "bed_count": 1 } ], "is_default_configuration": true } ] } ] }, "listing_name_id": 138547, "number_of_listings": 5, "smoking_policy": "SMOKING_AND_NONSMOKING", "size": { "value": 155.0, "unit": "SQM" }, "partner_reference_name": "Park facing Apartment", "floor_numbers_located_on": [ 2 ], "occupancy": { "max_guests": 5, "max_adults": 5, "max_children": 4, "max_children_that_pay_children_rate": 2 }, "extra_beds_configuration": { "extra_beds": 1, "cribs": 0, "is_crib_and_extra_bed_allowed": false } }, "warnings": [], "errors": [], "meta": { "ruid": "812536ee9-h5m3-8519-8d28-0218ebfffc68" } }
Response body elements
The following table describes the response elements:
Element | Description | Type | Notes |
---|---|---|---|
data | Contains details of the listing created. | object | - |
> listing_id | Specifies the listing ID. | string | Use this to update or deactivate the listing in subsequent calls. Same as the InvCode in HDI response. |
> configuration | Contains the listing configuration. | object | |
>> listing_type_id | Specifies the listing type ID. | enumerated string | For a list of all supported listing type IDs, see the Rooms API meta endpoint response. For example to create an One-Bedroom Apartment listing you must specify the listing type ID : 1 . |
>> rooms | Contains the room details provided the listing type supports rooms (also known as subrooms). | array of objects | To determine whether the listing supports room(s), check whether the is_multi_room is set to true for the respective listing type ID in the Rooms API meta endpoint response. |
>>> type | Specifies the room type supported by the listing type. | enumerated string | Supports the following values:
|
>>> bed_configurations | Contains the details of the bed available in the room. | object | |
>>>> beds | Contains the bed type and the total number of beds. | array of objects | |
>>>>> bed_type_id | Specifies the bed type ID that is supported by the listing type. | enumerated integer | For a list of all possible bed type IDs, see the bed_type_id key in the Meta endpoint response. |
>>>>> bed_count | Specifies the total number of beds available in the listing/room. | integer | |
>>>> is_default_configuration | Specifies whether the specified bed configuration is default for the listing/room. | boolean | |
> listing_name_id | Specifies the listing name ID that is part of the listing type. | string | For a list of all supported listing name IDs, see the Rooms API meta endpoint response. |
> number_of_listings | Specifies the total number of rooms available at the property for the specified room type. | integer | Default value: 1 . |
> smoking_policy | Specifies the smoking policy in the room. | enumerated string | Supports the following values:
|
>> size | Contains the listing size details. | object | |
>>> value | Specifies the listing size in the chosen unit. | integer | |
>>> unit | Specifies the unit of measurement to represent the listing size. | enumerated string | Supports the following values:
|
> partner_reference_name | Specifies a custom listing name that is visible in the extranet and in the API response. | string | Default value: "" (an empty string). |
> floor_numbers_located_on | Specifies the floor where the listing is located. | array of integer(s) | Default value: [] (an empty array). |
> occupancy | Contains the occupancy details of the listing. | object | optional |
>> max_guests | Specifies the maximum guest occupancy for the listing. | integer | Maximum value: 50 Default value: 1 . |
>> max_adults | Specifies the maximum adult occupancy for the listing. | integer | Maximum value: 50 Default value: 1 . Note that the total occupancy (sum of adults and children) must not exceed the room's maximum guest occupancy ( max_guests ) limit. |
>> max_children | Specifies the maximum child occupancy for the listing. | integer | Maximum value: 49 Default value: 0 Note that the total number of children should be less than the maximum number of guests. |
>> max_children_that_pay_children_rate | Specifies the maximum number of children eligible for the child rate. | integer | Maximum value: 49 Default value: 0 Note that the number of children eligible for the child rate specified here cannot exceed the maximum child occupancy ( max_children ). |
> extra_beds_configuration | Contains the extra beds details for the listing. | object | If not specified, the API specifies default values. |
>> extra_beds | Specifies the total number of extra beds available on request per room/listing. | integer | Default value: 0 Maximum 100. |
>> cribs | Specifies the total number of extra cribs available on request per room/listing. | integer | Default value: 0 Maximum 100. |
>> is_crib_and_extra_bed_allowed | Specifies whether guests have the option of requesting both the extra bet and crib in the room/unit. | boolean | Default: false . |
warnings | Contains any warnings in the request. | object | - |
errors | Contains any errors in the request. | object | - |
meta | Contains metadata information about the response. | object | - |
> ruid | Specifies the unique request ID. | string | You can share this ID with Booking.com customer support when you run into an issue. This can help in understanding what went wrong. |
Updating a listing
PATCH
https://supply-xml.booking.com/rooms-api/properties/{propertyId}/listings/{listingID}
To update an existing listing, copy the relevant portion of the response from the GET property listing details endpoint and use it as the request body. As an update action, the API overlays the existing listing details with the configuration in the request body. Make sure to send the root-level field and their nested fields.
Note that updating a listing doesn't affect existing reservations.
Path parameters
The following table describes the elements you must specify in the path:
Element | Description | Type | Required/ Optional | Notes |
---|---|---|---|---|
propertyId | Specifies the unique ID of the property. | integer | required | Must be valid and connected to your account |
listingID | Specifies the unique ID of the listing to update. | integer | required | Must belong to the property |
Request body parameters
The following table describes the elements you can add in the request body. Note that every root level field is optional, but if it has subfields you must provide all the subfields in full.
Element | Description | Type | Required/ Optional | Root parameter in HIN |
---|---|---|---|---|
listing_name_id | Specifies the listing name ID that is part of the listing type | string | optional | Description > Text |
number_of_listings | Specifies the total number of listings available at the property | integer | optional | Room > Quantity |
smoking_policy | Specifies the smoking policy in the listing | enumerated string | optional | Room > NonSmoking |
size | Contains the listing size details | object | optional | |
> value | Specifies the listing size in the chosen unit | integer | required1 | Room > SizeMeasurement |
> unit | Specifies the unit of measurement to represent the listing size | enumerated string | required1 | Room > SizeMeasurementUnit |
partner_reference_name | Specifies a custom listing name visible in the extranet and API response | string | optional | New field |
room_located_on_floors | Specifies the floor where the listing is located | array of integer(s) | optional | New field |
configuration | Contains the listing configuration | object | optional | |
> listing_type_id | Specifies the listing type ID | enumerated string | required1 | Room > RoomType |
> rooms | Contains the room details provided the listing type supports rooms | array of objects | required1 | |
>> type | Specifies the room type supported by the listing type | enumerated string | required1 | SubRoom > RoomType |
>> bed_configurations | Contains the details of the bed available in the room | object | conditional2 | SubRoom > Amenities |
>>> beds | Contains the bed type and the total number of beds | array of objects | required1 | |
>>>> bed_type_id | Specifies the bed type ID supported by the listing type | enumerated integer | required1 | AmenityCode (or RoomAmenityCode) |
>>>> bed_count | Specifies the total number of beds of the type specified above | integer | required1 | Quantity (or Value) |
>>> is_default_configuration | Specifies whether the specified bed configuration is default for the listing/room | boolean | required1 | Configuration |
occupancy | Contains the occupancy details of the listing | object | optional | - |
> max_guests | Specifies the maximum guest occupancy for the listing | integer | required1 | Occupancy > MaxOccupancy |
> max_adults | Specifies the maximum adult occupancy for the listing | integer | required1 | Occupancy > MaxAdultOccupancy |
> max_children | Specifies the maximum child occupancy for the listing | integer | required1 | Occupancy > MaxChildOccupancy |
> max_children_that_pay_children_rate | Specifies the maximum number of children eligible for the child rate | integer | required1 | TPA_Extensions > MaxChildPayableOccupancy |
extra_beds_configuration | Contains the extra beds details for the listing | object | optional | |
> extra_beds | Specifies the total number of extra beds available on request per listing/room | integer | required1 | Quantities > MaxRollaways |
> cribs | Specifies the total number of extra cribs available on request per listing/room | integer | required1 | Quantities > MaxCribs |
> is_crib_and_extra_bed_allowed | Specifies whether guests can request both the extra bed and crib in the listing/room | boolean | required1 | New field |
1 - required only if a parent field is provided
2 - required for room types GUEST_ROOM
and BEDROOM_SUBROOM
, optional for LIVING_ROOM_SUBROOM
Request body validations
Request body for update requests is subject to the same set of validations as create requests
Request body example
For more request examples for various use cases, see the examples in the Try it section of the PATCH method in the Open API specification.
For example, the following request sets new smoking policy, size and occupancy for an existing listing:
{ "smoking_policy": "NONSMOKING", "size": { "value": 45.0, "unit": "SQM" }, "occupancy": { "max_guests": 4, "max_adults": 4, "max_children": 3, "max_children_that_pay_children_rate": 3 } }
Response body example
The following is a response snippet:
{ "warnings": [], "errors": [], "meta": { "ruid": "463dye036s-9j3v-8b1l-p17n-d7e66289938d" } }
Response body elements
The following table describes the response elements:
Element | Description | Type | Notes |
---|---|---|---|
warnings | Contains any warnings in the request. | object | - |
errors | Contains any errors in the request. | object | - |
meta | Contains metadata information about the response. | object | - |
> ruid | Specifies the unique request ID. | string | You can share this ID with Booking.com customer support when you run into an issue. This can help in understanding what went wrong. |
Deactivating a listing
DELETE
https://supply-xml.booking.com/rooms-api/properties/{propertyId}/listings/{listingID}
Note that you can deactivate a listing only if there are no active or future reservations for that listing. Deactivating a listing is irreversible.
Path parameters
The following table describes the elements you must specify in the path:
Element | Description | Type | Required/ Optional | Notes |
---|---|---|---|---|
propertyId | Specifies the unique ID of the property. | integer | required | Must be valid and connected to your account |
listingID | Specifies the unique ID of the listing to deactivate. | integer | required | Must belong to the property |
Response body example
The following is a response snippet:
{ "warnings": [], "errors": [], "meta": { "ruid": "827nee036s-3n7h-8b1l-p17n-d7e66280827d" } }
Response body elements
The following table describes the response elements:
Element | Description | Type | Notes |
---|---|---|---|
warnings | Contains any warnings in the request. | object | - |
errors | Contains any errors in the request. | object | - |
meta | Contains metadata information about the response. | object | - |
> ruid | Specifies the unique request ID. | string | You can share this ID with Booking.com customer support when you run into an issue. This can help in understanding what went wrong. |
Retrieving listing details
GET
https://supply-xml.booking.com/rooms-api/properties/{propertyId}/listings
Retrieve all listings available in the specified property. When updating a listing, you can also copy the relevant portion of the response from this endpoint and use it as the request body.
Path parameters
The following table describes the elements you must specify in the path:
Element | Description | Type | Required/ Optional | Notes |
---|---|---|---|---|
propertyId | Specifies the unique ID of the property. | integer | required | Must be valid and connected to your account |
Response body example
The following is a response body snippet:
{ "data": [ { "listing_id": 813518811, "configuration": { "listing_type_id": 1, "rooms": [ { "type": "BEDROOM_SUBROOM", "bed_configurations": [ { "beds": [ { "bed_type_id": 3, "bed_count": 1 } ], "is_default_configuration": true } ] }, { "type": "BEDROOM_SUBROOM", "bed_configurations": [ { "beds": [ { "bed_type_id": 3, "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 } ] } ] }, "listing_name_id": 146362, "number_of_listings": 5, "smoking_policy": "NONSMOKING", "size": { "value": 115.0, "unit": "SQM" }, "partner_reference_name": null, "floor_numbers_located_on": null, "occupancy": { "max_guests": 6, "max_adults": 4, "max_children": 2, "max_children_that_pay_children_rate": 2 }, "extra_beds_configuration": { "extra_beds": 0, "cribs": 0, "is_crib_and_extra_bed_allowed": true } }, { "listing_id": 813518812, "configuration": { "listing_type_id": 1, "rooms": [ { "type": "BEDROOM_SUBROOM", "bed_configurations": [ { "beds": [ { "bed_type_id": 6, "bed_count": 1 } ], "is_default_configuration": true } ] }, { "type": "BEDROOM_SUBROOM", "bed_configurations": [ { "beds": [ { "bed_type_id": 4, "bed_count": 1 } ], "is_default_configuration": true } ] }, { "type": "LIVING_ROOM_SUBROOM", "bed_configurations": [ { "beds": [ { "bed_type_id": 7, "bed_count": 1 } ], "is_default_configuration": true } ] } ] }, "listing_name_id": 140088, "number_of_listings": 5, "smoking_policy": "SMOKING_AND_NONSMOKING", "size": { "value": 155.0, "unit": "SQM" }, "partner_reference_name": "Park facing Apartment", "floor_numbers_located_on": [ 2 ], "occupancy": { "max_guests": 5, "max_adults": 5, "max_children": 4, "max_children_that_pay_children_rate": 2 }, "extra_beds_configuration": { "extra_beds": 1, "cribs": 0, "is_crib_and_extra_bed_allowed": false } } ], "warnings": [], "errors": [], "meta": { "ruid": "8n5t26mw-125e-44b6-869e-70357e19n72w" } }
Response body elements
The following table describes the response elements:
Element | Description | Type | Notes |
---|---|---|---|
data | Contains details of all active listings for a property | object | - |
> listing_id | Specifies the listing ID. | string | Use this to update or deactivate the listing in subsequent calls. Same as the InvCode in HDI response. |
> configuration | Contains the listing configuration. | object | |
>> listing_type_id | Specifies the listing type ID. | enumerated string | For a list of all supported listing type IDs, see the Rooms API meta endpoint response. For example to create an One-Bedroom Apartment listing you must specify the listing type ID : 1 . |
>> rooms | Contains the room details provided the listing type supports rooms (also known as subrooms). | array of objects | To determine whether the listing supports room(s), check whether the is_multi_room is set to true for the respective listing type ID in the Rooms API meta endpoint response. |
>>> type | Specifies the room type supported by the listing type. | enumerated string | Supports the following values:
|
>>> bed_configurations | Contains the details of the bed available in the room. | object | |
>>>> beds | Contains the bed type and the total number of beds. | array of objects | |
>>>>> bed_type_id | Specifies the bed type ID that is supported by the listing type. | enumerated integer | For a list of all possible bed type IDs, see the bed_type_id key in the Meta endpoint response. |
>>>>> bed_count | Specifies the total number of beds available in the listing/room. | integer | |
>>>> is_default_configuration | Specifies whether the specified bed configuration is default for the listing/room. | boolean | |
> listing_name_id | Specifies the listing name ID that is part of the listing type. | string | For a list of all supported listing name IDs, see the Rooms API meta endpoint response. |
> number_of_listings | Specifies the total number of rooms available at the property for the specified room type. | integer | Default value: 1 . |
> smoking_policy | Specifies the smoking policy in the room. | enumerated string | Supports the following values:
|
>> size | Contains the listing size details. | object | |
>>> value | Specifies the listing size in the chosen unit. | integer | |
>>> unit | Specifies the unit of measurement to represent the listing size. | enumerated string | Supports the following values:
|
> partner_reference_name | Specifies a custom listing name that is visible in the extranet and in the API response. | string | Default value: "" (an empty string). |
> floor_numbers_located_on | Specifies the floor where the listing is located. | array of integer(s) | Default value: [] (an empty array). |
> occupancy | Contains the occupancy details of the listing. | object | optional |
>> max_guests | Specifies the maximum guest occupancy for the listing. | integer | Maximum value: 50 Default value: 1 . |
>> max_adults | Specifies the maximum adult occupancy for the listing. | integer | Maximum value: 50 Default value: 1 . Note that the total occupancy (sum of adults and children) must not exceed the room's maximum guest occupancy ( max_guests ) limit. |
>> max_children | Specifies the maximum child occupancy for the listing. | integer | Maximum value: 49 Default value: 0 Note that the total number of children should be less than the maximum number of guests. |
>> max_children_that_pay_children_rate | Specifies the maximum number of children eligible for the child rate. | integer | Maximum value: 49 Default value: 0 Note that the number of children eligible for the child rate specified here cannot exceed the maximum child occupancy ( max_children ). |
> extra_beds_configuration | Contains the extra beds details for the listing. | object | If not specified, the API specifies default values. |
>> extra_beds | Specifies the total number of extra beds available on request per room/listing. | integer | Default value: 0 Maximum 100. |
>> cribs | Specifies the total number of extra cribs available on request per room/listing. | integer | Default value: 0 Maximum 100. |
>> is_crib_and_extra_bed_allowed | Specifies whether guests have the option of requesting both the extra bet and crib in the room/unit. | boolean | Default: false . |
warnings | Contains any warnings in the request. | object | - |
errors | Contains any errors in the request. | object | - |
meta | Contains metadata information about the response. | object | - |
> ruid | Specifies the unique request ID. | string | You can share this ID with Booking.com customer support when you run into an issue. This can help in understanding what went wrong. |