Skip to content
Andrew Jones edited this page May 17, 2021 · 2 revisions

Request Url: /apis/latedeals?days=15

days: x days before check-in

To display properties that have different rules i.e. Last Minute within 10, 15, 30 days

https://api.clientdomain.com/apis/latedeals?days=30,15,10

Response:

[
    {
        "PropertyId": 22302,
        "DiscountPercentage": 0.15
    },
    {
        "PropertyId": 11074,
        "DiscountPercentage": 0.20
    }
]

We would then recommend using the /apis/propertysearchlite?propertyIds=22302,11074

This will then display the properties which have a last minute deal, if you add the following parameters:

checkIn checkout nights

apis/propertysearchlite?propertyIds=22302,11074&checkIn=2021-05-17&checkout=2021-06-14&nights=7

This will then only display properties which have availability in the next 30 days and offer a lastminute discount.

Clone this wiki locally