Get Rooms
API methods to work with Room Types & Rateplans
Retrieve a list of Room Types associated with user Properties.
Header:
Authorization: Bearer [auth_token]
Example - Authorization: Bearer MjAyMS0wNy0xM1QxNDowNTo0OSswNzowMDYwZWQzYjRkNmIxNTU1Nw==
URL:
POST http://bookandlink.com/ota/ota_update/bnl/bnl_api.php?pms_name=[pms_name]
Query body (JSON):
{
"action":"get_room_rate",
"property_id":"57"
}
{
"data":[
{
"roomTypeCode":"350",
"title":"Family Room",
"ratePlans":{
"ratePlanCode":"4825",
"title":"ROOM ONLY"
}
},
{
"roomTypeCode":"2491",
"title":"HOSTELBEDS - Standard 8 Bed Mixed Form Ensuite",
"ratePlans":{
"ratePlanCode":"4350",
"title":"Standard Rates"
}
},
{
"roomTypeCode":"2493",
"title":"HOSTELWORLD - Standard Twin Private Ensuite",
"ratePlans":{
"ratePlanCode":"4352",
"title":"Standard Rates"
}
},
{
"roomTypeCode":"3155",
"title":"EXPERTRESA",
"ratePlans":{
"ratePlanCode":"5828",
"title":"BREAKFAST"
}
}
]
}
Invalid Request Error Response
{
"errors":{
"code":"invalid_request",
"title":"Invalid request json format, please send an valid json format"
}
}
Unauthorized Ip Error Response
{
"errors":{
"code":"unauthorized_ip",
"title":"Request IP is not configured for pms, Please contact to support for IP configuration."
}
}
Invalid Pms Error Response
{
"errors":{
"code":"invalid_pms",
"title":"Invalid pms name, please send an valid pms name"
}
}
Fields
action [required]
get_room_rate
property_id [required]
Integer value
roomTypeCode Room Type Id.
title Room name
ratePlanCode RatePlan Id.
RatePlanse [title] RatePlan name