The Featured Promos API lets you retrieve a list of Promotions that the Staylist owner has deemed noteworthy in their Staylists portal. By cross-referencing the property with your own database, you’ll be able to create dynamic pages displaying available promotions.
This request requires authentication
Make a GET request to the following endpoint:
https://app.staylists.com/api/v3/featured_promos
Providing some Featured Promos exist, you’ll see something like this:
Name | Type | Description of value |
---|---|---|
id | integer |
The ID of the Promo |
headline | string |
A generated short description of the Promo |
kind | string |
One of
"quick_discount" ,
"early_bird" ,
"last_minute" ,
"free_night" or
"added_extra" .
|
days_of_week | array |
An array of integers representing the days of the week a promo will be applied, where 1 is Monday and 7 is Sunday. Hence [1, 2, 3, 4, 5] would be Monday to Friday. Bookings can straddle promotions, and the best price on each day will apply. So if somebody booked a Friday and Saturday, and a Promo was only available Monday to Friday, then only Friday night's price will be discounted accordingly.
|
days_of_week_humanized | string |
A convenience method for displaying days of the week. For example,
if days_of_week equals [1,2,3,4,5,6,7] then this will return "Every day". If days_of_week equals [1,2,3,4] then this will return "Monday to Thursday".
|
rate_type_ids | array |
The IDs of the Rate Types this Promo discounts. |
bookable_ids | array |
The IDs of the Bookables (Rooms, Apartments, Tent Pitches etc) this Promo discounts. |