Create Booking API

Description: Create booking

Path: /api/v2/reservation/createBooking

Method: POST

Content Type/Accept Type: application/json

Request

Attributes

* = required

clientId*

string

Identity of client

timestamp*

timestamp

Current timestamp

transactionId*

string

A unique identifier for each booking, provided as a unique key by partner

mobile*

string

Phone number of user

countryCode*

string

Country code

roomTypeSn*

integer

Identity of room type

mode*

integer

Based on your select room. We use this type to calculate the price by normal room or flash sale room

Possible enum values: 1 = Normal 2 = Flash Sale

bookingType*

integer

Type of booking

Possible enum values: 1 = Hourly Booking 2 = Overnight Booking 3 = Daily Booking

checkInDatePlan*

string

Check-in date (user plan)

Format: YYYY-mm-dd

endDate*

string

Check-out date (user plan)

Format: YYYY-mm-dd

startTime

string

Required when choosing Hourly Booking

Format: HH:mm

endTime

string

Required when choosing Hourly Booking

Format: HH:mm

Example

Response

Attributes

transactionId

string

A unique identifier for each booking, provided as a unique key by partner

Example