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

hotelSn*

integer

Identify of hotel

roomTypeSn*

integer

Identify of room type

bookingType*

integer

Possible enum values: 1 = Hourly 2 = Overnight

name*

string

Flash Sale program name

bookingCapacity*

integer

Num of booking capacity

priceFlashSale*

integer

Flash Sale price

priceAdditionalHoursFlashSale

integer

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

startTime

string

Start time Flash Sale. Format: H:i

endTime

string

End time Flash Sale. Format: H:i

startDate

string

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

endDate

string

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

applyType

integer

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