Versions Compared

Key

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

Get the availability of a property.

Endpoint: https://ws.icnea.net/pricing_get_calendar.aspx?usr=$8$8$8$8$a1b2c3d4e5&id=8100112341001

You will get the dates coming 1 year and past 1 year from the date of the call.
The ‘status’ can be ‘booked’ or ‘unbooked’.
For the rates:E

  • “people”: the number of people for that rate. If the property has only standard rate, it will
    show the maximum capacity.

  • “nights”: the number of nights for that rate. If the property doesn’t have different prices
    per number of nights, it will always show 1.

  • "rates": [] if you see empty rates, it’s because the property manager hasn’t put prices
    for these dates yet.

Code Block
languagejson
{
  "pricing_get_calendar_response": {
    "lodging_id": "8100112341001",
    "currency": "EUR",
    "dates": [
    {
      "date": "20172020-10-01",
      "units": "",
      "status": "booked",
      "available": "",
      "booking_id", "",
      "rates": [
      {
        "rate": "",
        "people": "2",
        "nights": "1",
        "price": "110.00",
        "minimum": "3"
      }, {
        "rate": "",
        "people": "3",
        "nights": "1",
        "price": "125.00",
        "minimum": "3"
      }, {
        "rate": "",
        "people": "4",
        "nights": "1",
        "price": "135.00",
        "minimum": "3"
      }]
    }, {
      "date": "20172020-10-02",
      "status": "booked",
      "available": "",
      "booking_id", "",
      "rates": [
      {
        "rate": "",
        "people": "2",
        "nights": "1",
        "price": "110.00",
        "minimum": "3"
      }, {
        "rate": "",
        "people": "3",
        "nights": "1",
        "price": "125.00",
        "minimum": "3"
      }, {
        "rate": "",
        "people": "4",
        "nights": "1",
        "price": "135.00",
        "minimum": "3"
      }]
    }, {
      "date": "20192021-10-01",
      "status": "unbooked",
      "available": "",
      "booking_id", "",
      "rates": []
    }]
  }
}