Create Direct Discount

Description: Create a direct discount promotion applied directly to the price

Path: /api/v1/pricing/createDirectDiscount

Method: POST

Request

Attributes

* = required

hotelSn*

integer

Identify of hotel

name*

string

Direct Discount program name

roomTypeList*

array

List of room types

roomTypeList.*.roomTypeSn*

integer

Identify of room type

roomTypeList.*.priceFirstHours*

integer

First Hours price after discount. Only applies to Hourly Booking. With 0: Not in operation

roomTypeList.*.priceAdditionalHours*

integer

Additional Hours price after discount. Only applies to Hourly Booking. With 0: Not in operation

roomTypeList.*.priceOvernight*

integer

Overnight price after discount. Only applies to Overnight Booking. With 0: Not in operation

roomTypeList.*.priceOneDay*

integer

One Day price. Only applies to Daily Booking. With 0: Not in operation

startTime

string

Start time Direct Discount. Format: H:i

endTime

string

End time Direct Discount Format: H:i

startDate

string

Start date Direct Discount. Format: Y-m-d Applicable only for applyType = 2 (Weekday)

endDate

string

End date Direct Discount. Format: Y-m-d Applicable only for applyType = 2 (Weekday)

applyType

integer

Applicable date frame type. Possible enum values: 2 = Weekday 3 = Special day

specialDayList

array

Special day list. Only applies to applyType = 3 (Special day)

dayOfWeekList

array

Weekdays. The value is from 0-> 6 corresponding from Sunday to Saturday. Applicable only for applyType = 2 (Weekday)

Example

Response

Attributes

acknowledged

boolean

The update has been applied yet

Example

Last updated