🖋️
Bookandlink json pms API
  • PMS Documentation
  • Authentication
  • Get Rooms
  • Update Availability
  • Update Price & Restrictions
  • Reservations
  • Save Room
  • Save Rate
Powered by GitBook
On this page

Was this helpful?

Save Room

API methods to work with Save Room

Save Room for a specific BNL Property.

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":"save_room",
   "property_id":"57",
   "data":[
      {
         "name":"Deluxe Room2",
         "description":"test description",
         "rooms_available_to":"5",
         "cut_of_nights":"3",
         "images":"336905096701.jpg,901115487007.jpg,736916523002.jpg,2113624934249_15b.jpg,8593625049249_14b.jpg,9079437941249_13b.jpg",
         "free_allotment":"3",
         "amenities":[
            {
               "id":"34",
               "option":"free",
               "rate":"0",
               "freq":"fix",
               "name":"Air conditioning"
            },
            {
               "id":"39",
               "option":"free",
               "rate":"0",
               "freq":"fix",
               "name":"Bath or Shower"
            }
         ]
      },
      {
         "name":"Daily Room2",
         "description":"test description",
         "rooms_available_to":"5",
         "cut_of_nights":"3",
         "images":"336905096701.jpg,901115487007.jpg,736916523002.jpg,2113624934249_15b.jpg,8593625049249_14b.jpg,9079437941249_13b.jpg",
         "free_allotment":"3",
         "amenities":[
            {
               "id":"34",
               "option":"free",
               "rate":"0",
               "freq":"fix",
               "name":"Air conditioning"
            },
            {
               "id":"39",
               "option":"free",
               "rate":"0",
               "freq":"fix",
               "name":"Bath or Shower"
            }
         ]
      }
   ]
}
{
   "room":[
      {
         "id":"9245",
         "name":"Deluxe Room2"
      },
      {
         "id":"9246",
         "name":"Daily Room2"
      }
   ]
}

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_name] 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"
   }
}

Invalid Formate

{
   "errors":{
      "code":"unauthorized",
      "title":"Invalid json request"
   }
}

Invalid token/property_id/pms

{
   "errors":{
      "code":"unauthorized",
      "title":"Invalid token/property_id/pms"
   }
}

Fields

action [required] save_room

property_id [required] Integer value

name[required] room name.

description room description

rooms_available_to Integer value

cut_of_nights Integer value

images Image name

free_allotment Integer value

amenities json value

PreviousReservationsNextSave Rate

Last updated 3 years ago

Was this helpful?