Versions Compared

Key

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

...

Code Block
languagejson
{
  "listingId": "1386b2ba-eca5-4adf-9e04-62fc521273f9",
  "unitTypeId": "fc033fae-191e-4618-80be-a8ffd48f25fc",
  "availabilities": [
    {
      "date": "2022-04-26",
      "unitsAvailable": 21
    },
    {
      "date": "2022-04-27",
      "unitsAvailable": 1
    }
  ],
  "losRecords": {
      "los": {
        "2022-04-26": [
          {
            "price": [
              40,
              80,
              120,
              150
            ],
            "currency": "EUR",
            "maxOccupancy": 2
          },
          {
            "price": [
              50,
              90,
              130,
              160
            ],
            "currency": "EUR",
            "maxOccupancy": 3
          }
        ],
        "2022-04-27": [
          {
            "price": [
              40,
              80
            ],
            "currency": "EUR",
            "maxOccupancy": 2
          },
          {
            "price": [
              50,
              90
            ],
            "currency": "EUR",
            "maxOccupancy": 3
          }
        ]
      }
    }
}

The sample response for los above indicates that 2022-04-26 and 2022-04-27 are available checkin dates with a possibility to book for upto 4 nights for 2 or 3 guests on 2022-04-26 and upto 2 nights for 2 or 3 guests on 2022-04-27. The number of prices in the price list indicates the number of nights possible to book from the checkin date.

Sync Frequency

To ensure the latest listing availability and prices, partners should regularly poll the pricing updates. The pricing updates API can be polled up to the interval specified in the Rate limiting. We recommend that you poll it multiple times per minute to avoid overbookings. We also recommend reconfirming the availability of the property before processing the new booking. This can be done by fetching the same price update for specific listing & unit type as shown above.

...