🖋️
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 Rate

API methods to work with Save Rate

Save Rate 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_rate",
    "property_id":"57",
    "data":[
      {
         "roomTypeCode":"9245",
         "name":"Deluxe Room1",
         "ratePlans":[
            {
               "name":"BAR RATE1",
               "description":"Best price available",
               "maxnights":"2",
               "standard_guests_included_in_price":"10000.00",
               "maximum_guests_allowed":"10",
               "extra_adult_charge":"100",
               "extra_child_charge":"20",
               "breakfast_included":"1",
               "refundable":"1",
               "rate_m":"6000000",
               "maximum_children_allowed":"6",
               "maximum_adults_allowed":"4",
               "min_rate":"20000.00"
            },
            {
               "name":"best discount1",
               "description":"Best discount price",
               "maxnights":"2",
               "standard_guests_included_in_price":"20000.00",
               "maximum_guests_allowed":"11",
               "extra_adult_charge":"200",
               "extra_child_charge":"30",
               "breakfast_included":"1",
               "refundable":"0",
               "rate_m":"7000000",
               "maximum_children_allowed":"7",
               "maximum_adults_allowed":"4",
               "min_rate":"10000.00"
            }
         ]
      }
   ]
}
{
   "room":[
      {
         "id":"9245",
         "name":"Deluxe Room1",
         "rate_plan":[
            {
               "id":"22424",
               "name":"BAR RATE1"
            },
            {
               "id":"22425",
               "name":"best discount1"
            }
         ]
      }
   ]
}

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

Invalid roomTypecode

{
   "errors":{
      "code":"invalid",
      "title":"Invalid roomTypeCode"
   }
}

Fields

action [required] save_rate

property_id [required] Integer value

roomTypeCode [required]saved room id

name room name

name[required] (inside ratePlans node) rate plan name

description rate plan description

maxnights Integer value

standard_guests_included_in_price Integer value

maximum_guests_allowed Integer value

extra_adult_charge Integer value.

extra_child_charge Integer value

breakfast_included Integer value(Possible value 1 and 0)

refundable Integer value(Possible value 1 and 0)

rate_m Integer value

maximum_children_allowed Integer value

maximum_adults_allowed Integer value

min_rate Integer value

PreviousSave Room

Last updated 3 years ago

Was this helpful?