Create Direct Discount

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

Path: /api/v1/pricing/createDirectDiscount

Method: POST

Request

Attributes

* = required

chevron-righthotelSn*hashtag

integer

Identify of hotel

chevron-rightname*hashtag

string

Direct Discount program name

chevron-rightroomTypeList*hashtag

array

List of room types

chevron-rightroomTypeList.*.roomTypeSn*hashtag

integer

Identify of room type

chevron-rightroomTypeList.*.priceFirstHours*hashtag

integer

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

chevron-rightroomTypeList.*.priceAdditionalHours*hashtag

integer

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

chevron-rightroomTypeList.*.priceOvernight*hashtag

integer

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

chevron-rightroomTypeList.*.priceOneDay*hashtag

integer

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

chevron-rightstartTimehashtag

string

Start time Direct Discount. Format: H:i

chevron-rightendTimehashtag

string

End time Direct Discount Format: H:i

chevron-rightstartDatehashtag

string

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

chevron-rightendDatehashtag

string

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

chevron-rightapplyTypehashtag

integer

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

chevron-rightspecialDayListhashtag

array

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

chevron-rightdayOfWeekListhashtag

array

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

Example

Response

Attributes

chevron-rightacknowledgedhashtag

boolean

The update has been applied yet

Example

Last updated