Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Get the prices and restrictions for a specific apartment, dates and people.

Request: DailyRates(propertyID, arrival, departure, people, language, usr, pwd)

parameter

type

options

mandatory?

propertyID

integer

4 characters

Yes

arrival

string

Format yyyy-MM-dd

“2020-12-01”

Yes

departure

string

Format yyyy-MM-dd

“2020-12-01”

Yes

people

integer

No

language

string

“es”, “en”, etc → ISO standard code

Yes

usr

integer


Yes

pwd

string


Yes

If you put 0 in the ‘people’ parameter, it will search without looking into the capacity of the properties.

Response:

Code Block
languagejson
{
  "DailyRates": [
    {
      "room": '"double'",
      "room_id": "1",
      "rate": '"standard'",
      "rate_id": "1",
      "price": "120.00",
      "previous_price": "130.00",
      "discount": "10",
      "booking_fee": "20"
      "cleaning_fee": "40",
      "booking_deposit": "300",
      "prepayment_percentage": "25",
      "payment_on_booking": "75",
      "arrival_weekday": "0",
      "closed_to_arrival": false,
      "closed_to_departure": false,
      "currency": '"EUR'",
      "minimum_stay": "3"
    }
  ]
}