Skip to main content

DiscountConditions

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]

    DiscountConditions
    {
    "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"
    }