DiscountDto
Discount id in Holidu system
Provider's own external discount ID for reconciliation
Discount Status
Possible values: [ACTIVE, INACTIVE, DELETED]
ACTIVEName of the discount
Pre Season DiscountType of discount
Possible values: [EARLY_BIRD, LAST_MINUTE, LONG_STAY, DEVICE_SPECIFIC, NEW_LISTING, LOYALTY, OFFER, PROVIDER_IMPLICIT]
EARLY_BIRDPercentage of discount. Required for every type except PROVIDER_IMPLICIT
Possible values: >= 0 and <= 100
12conditions object
Number of days before checkin the booking has to be made
60Minimum Stay (days) if required to get the discount
5bookingSeason object[]
Booking date must be in seasons for the discount to apply
Only applicable from date
2020-08-01Only applicable until date
2021-04-30travelSeason object[]
Stay must be within seasons for the discount to apply
Only applicable from date
2020-08-01Only applicable until date
2021-04-30If the discount is applicable only for specific device.
Possible values: [MOBILE, DESKTOP]
If discount is applicable based on user type.
Possible values: [USER_AUTHENTICATED]
implicitDiscounts object[]
PROVIDER_IMPLICIT only: per-rate grids of absolute discount amounts
Rate this grid belongs to
NON_REFUNDABLEdiscountGrid object
Discount rows keyed by check-in date; one entry per guest count, like the LOS grid
<key> object[]
Discount rows keyed by check-in date; one entry per guest count, like the LOS grid
Number of guests these amounts apply to
2Currency of the amounts, matches the LOS price currency
EURAbsolute discount per length of stay, parallel to the LOS price vector
[0,20,30]{
"id": 0,
"providerDiscountId": "string",
"status": "ACTIVE",
"name": "Pre Season Discount",
"discountType": "EARLY_BIRD",
"discountPercent": 12,
"conditions": {
"daysBeforeCheckIn": 60,
"minStay": 5,
"bookingSeason": [
{
"onlyApplicableFrom": "2020-08-01",
"onlyApplicableUntil": "2021-04-30"
}
],
"travelSeason": [
{
"onlyApplicableFrom": "2020-08-01",
"onlyApplicableUntil": "2021-04-30"
}
],
"deviceType": "MOBILE",
"userType": "USER_AUTHENTICATED"
},
"implicitDiscounts": [
{
"rateId": "NON_REFUNDABLE",
"discountGrid": {}
}
]
}