Skip to main content

BookingDiscount

discountIdinteger<int64>
providerDiscountIdstring
namestring
discountTypestring

Possible values: [EARLY_BIRD, LAST_MINUTE, LONG_STAY, DEVICE_SPECIFIC, NEW_LISTING, LOYALTY, OFFER]

percentagenumber
conditions object
daysBeforeCheckIninteger<int32>

Number of days before checkin the booking has to be made

Example: 60
minStayinteger<int32>

Minimum Stay (days) if required to get the discount

Example: 5
bookingSeason object[]

Booking date must be in seasons for the discount to apply

  • Array [
  • onlyApplicableFromstring<date>

    Only applicable from date

    Example: 2020-08-01
    onlyApplicableUntilstring<date>

    Only applicable until date

    Example: 2021-04-30
  • ]
  • travelSeason object[]

    Stay must be within seasons for the discount to apply

  • Array [
  • onlyApplicableFromstring<date>

    Only applicable from date

    Example: 2020-08-01
    onlyApplicableUntilstring<date>

    Only applicable until date

    Example: 2021-04-30
  • ]
  • deviceTypestring

    If the discount is applicable only for specific device.

    Possible values: [MOBILE, DESKTOP]

    userTypestring

    If discount is applicable based on user type.

    Possible values: [USER_AUTHENTICATED]

    amount object
    amountnumber
    currencystring
    BookingDiscount
    {
    "discountId": 0,
    "providerDiscountId": "string",
    "name": "string",
    "discountType": "EARLY_BIRD",
    "percentage": 0,
    "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"
    },
    "amount": {
    "amount": 0,
    "currency": "string"
    }
    }