-
Notifications
You must be signed in to change notification settings - Fork 0
Late Deals
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.
- Get Started
- Settings
- Contacts
- Properties
- Properties
- Property Detail
- Property Images
- Property Extras
- Property Reference Lookup
- Property Rates
- Push Property Rates
- Property Custom Rates
- Property Availabilities
- Property Day Availabilities
- Property Rooms
- Property Distances
- Property All
- Property Search
- Property Search Lite
- Property Search Lite v2
- Property Enquiries
- Property Welcome Pack
- Push Property
- Properties Last Updated
- Property Day Availability Check
- Property Reviews
- Property Blockouts
- Property Detail Events
- Property Search Events
- Property Management
- Enquries
- Bookings
- Reviews
- Payments
- Offers & Deals
- Reports
- Communications