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]
EARLY_BIRDPercentage of discount
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]
{
"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"
}
}