Create Room Lock

Description: Create room lock

Path: /api/v1/availability/createRoomLock

Method: POST

Request

Attributes

* = required

hotelSn*

integer

Identify of hotel

startDate*

string

The maximum valid time is 365 days from now. Format: Y-m-d

endDate*

string

The maximum valid time is 365 days from now. Format: Y-m-d

startTime

string

Optional, only applicable to Hourly Booking lock type. Format: H:i

endTime

string

Optional, only applicable to Hourly Booking lock type. Format: H:i

lockType*

integer

Possible enum values: 0 = All of booking types 1 = Hourly Booking 2 = Overnight Booking 3 = Daily Booking

roomTypeSnList*

array

List of identify of room type. Note: roomTypeSnList = [0] if you want apply for all of room types.

Example

Response

Attributes

acknowledged

boolean

The update has been applied yet

Example

Last updated