Create Flash Sale

Description: Create a new flash sale campaign with special discounts, limited stock, and a short time frame.

Path: /api/v1/pricing/createFlashSale

Method: POST

Request

Attributes

* = required

chevron-righthotelSn*hashtag

integer

Identify of hotel

chevron-rightroomTypeSn*hashtag

integer

Identify of room type

chevron-rightbookingType*hashtag

integer

Possible enum values: 1 = Hourly 2 = Overnight

chevron-rightname*hashtag

string

Flash Sale program name

chevron-rightbookingCapacity*hashtag

integer

Num of booking capacity

chevron-rightpriceFlashSale*hashtag

integer

Flash Sale price

chevron-rightpriceAdditionalHoursFlashSalehashtag

integer

Additional Hours Flash Sale price. Only applies to hourly booking (bookingtype = 1)

chevron-rightstartTimehashtag

string

Start time Flash Sale. Format: H:i

chevron-rightendTimehashtag

string

End time Flash Sale. Format: H:i

chevron-rightstartDatehashtag

string

Start date Flash Sale. Format: Y-m-d Applicable only for applyType = 2 (Weekday) and 1 (Today)

chevron-rightendDatehashtag

string

End date Flash Sale. Format: Y-m-d Applicable only for applyType = 2 (Weekday) and 1 (Today)

chevron-rightapplyTypehashtag

integer

Applicable date frame type. Possible enum values: 1= Today 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