Show Promotion Bundle
const url = 'https://api.wink.travel/api/managing-entity/hotel-1/extranet/promotion-bundle/promotion-bundle-1';const options = {method: 'GET', headers: {'Wink-Version': '2.0'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.wink.travel/api/managing-entity/hotel-1/extranet/promotion-bundle/promotion-bundle-1 \ --header 'Wink-Version: 2.0'Retrieve a rate modifier ancillary by its identifier
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Show single promotion bundle owned by this property identifier.
Example
hotel-1Show single promotion bundle with this identifier.
Example
promotion-bundle-1Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”OK
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
Hotel identifier.
Internal name of promotion ancillary.
Whether this promotion ancillary is enabled or not.
Promotions that go together to make up this ancillary.
object
Unique record identifier
Hotel identifier.
Internal name of promotion.
Set whether you want the price to go up or down when the rules of this promotion have been satisfied.
object
When the type is FIXED, fixedAmount is required. When the type is PERCENTAGE, percent is required.
A percentage of the total stay amount for an early check-in or late check-out
A localized amount
object
Whether this promotion is enabled or not.
This determines whether this discount should be applied per night, per stay or per person - per night
Localized descriptions describing promotion. At least one English entry is required.
object
Longer text description
Indicate which language this description is written in.
Whether it was user or system generated.
The md5 hash of the name, description and language.
Restrict promotion to specific cities. See Geo-IP city geoname data
object
City geoIP
object
GeoNameLightweight identifiers taken from https://geonames.org.
Locale code
Continent code
Continent name
Country ISO code
Country name
City name
Timezone
Sub-division 1 code
Sub-division 1 name
Sub-division 2 code
Sub-division 2 name
Restrict promotion to specific continents. See Geo-IP continent geoname data
object
Continent code
Restrict promotion to specific countries. See Geo-IP country geoname data
object
Country to restrict on
object
Restrict promotion by requiring users to enter a promo code.
object
Promotion code
Restrict promotion to specific IP ranges.
object
Start of IP range
End of IP range
Restrict promotion by restricting to how many rooms the user wants.
object
Minimum number of rooms
Maximum number of rooms
Restrict promotion to either prepaid / non-prepaid rates.
object
Whether prepay is required or not
Restrict promotion to either refundable / non-refundable rates.
object
Whether restriction is on refundable rates
Restrict promotion to specific time zones. See Geo-IP timezone geoname data
object
Bookers timezone
Restrict promotion to users who want to book a room close to the date.
object
Seconds before day of arrival occurs
Restrict promotion to users who want to stay a certain number of days.
object
Minimum length of stay qualifier
Maximum length of stay qualifier
Restrict promotion to users who want to book in advance.
object
Minimum advance booking offset qualifier
Maximum advance booking offset qualifier
Restrict promotion to specific stay dates the user wants to arrive.
object
The effective (start) date of the stay date rate qualifier
The expiration (end) date of the stay date rate qualifier
Restrict promotion to specific dates the booking is made.
object
The effective (start) date of the sell date rate qualifier
The expiration (end) date of the sell date rate qualifier
Restrict promotion to specific days of the week the promotion is available.
object
The days of the week when this rate is available
object
Set to true to enable Monday.
Set to true to enable Tuesday.
Set to true to enable Wednesday.
Set to true to enable Thursday.
Set to true to enable Friday.
Set to true to enable Saturday.
Set to true to enable Sunday.
Convenience property to quickly determine if this existing object has any active days enabled.
Restrict promotion to specific days of the week the guest is arriving.
object
The days of the week when this rate is available for guests to arrive on
object
Set to true to enable Monday.
Set to true to enable Tuesday.
Set to true to enable Wednesday.
Set to true to enable Thursday.
Set to true to enable Friday.
Set to true to enable Saturday.
Set to true to enable Sunday.
Convenience property to quickly determine if this existing object has any active days enabled.
Restrict promotion to specific days of the week the guest is departing.
object
The days of the week when this rate is available
object
Set to true to enable Monday.
Set to true to enable Tuesday.
Set to true to enable Wednesday.
Set to true to enable Thursday.
Set to true to enable Friday.
Set to true to enable Saturday.
Set to true to enable Sunday.
Convenience property to quickly determine if this existing object has any active days enabled.
Restrict promotion to specific days of the week the guest has to stay.
object
The days of the week the user has to stay on to get this rate
object
Set to true to enable Monday.
Set to true to enable Tuesday.
Set to true to enable Wednesday.
Set to true to enable Thursday.
Set to true to enable Friday.
Set to true to enable Saturday.
Set to true to enable Sunday.
Convenience property to quickly determine if this existing object has any active days enabled.
Restrict on specific master rates.
Restrict on specific add-ons.
Restrict on specific rate plans.
Exclude this promotion from specific date ranges.
object
Blackout start date.
Blackout end date.
object
When the type is FIXED, fixedAmount is required. When the type is PERCENTAGE, percent is required.
A percentage of the total stay amount for an early check-in or late check-out
A localized amount
object
Required if manual override modifier is not null
Determines whether this discount should be applied per night, per stay or per person - per night; Required if amount override is not null
Optional bundle-level descriptions. When populated, these replace the aggregated item descriptions in offerDetails — typically used with modifierOverride to describe the bundle as a whole.
object
Longer text description
Indicate which language this description is written in.
Whether it was user or system generated.
The md5 hash of the name, description and language.
object
Longer text description
Indicate which language this description is written in.
Whether it was user or system generated.
The md5 hash of the name, description and language.
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "hotelIdentifier": "", "name": "", "enabled": true, "items": [ "" ], "modifierOverride": { "type": "FIXED", "percent": "", "fixedAmount": "" }, "type": "PREMIUM", "pricingType": "PER_STAY", "descriptions": "", "aggregatedItemDescriptions": [ { "description": "", "language": "en", "creator": "SYSTEM", "md5ContentHash": "" } ]}Bad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Forbidden
object
object
Internal Server Error
object
Example generated
{}