Calculate Booking Amount API

Description: Calculate booking amount

Path: /api/v2/reservation/calculateBookingAmount

Method: POST

Content Type/Accept Type: application/json

Request

Attributes

* = required

chevron-rightclientId*hashtag

string

Identity of client

chevron-righttimestamp*hashtag

timestamp

Current timestamp

chevron-righthotelSn*hashtag

integer

Identity of hotel

chevron-rightroomTypeSn*hashtag

integer

Identity of room type

chevron-rightmode*hashtag

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

chevron-rightbookingType*hashtag

integer

Type of booking

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

chevron-rightcheckInDatePlan*hashtag

string

Check-in date (user plan)

Format: YYYY-mm-dd

chevron-rightendDate*hashtag

string

Check-out date (user plan)

Format: YYYY-mm-dd

chevron-rightstartTimehashtag

string

Required when choosing Hourly Booking

Format: HH:mm

chevron-rightendTimehashtag

string

Required when choosing Hourly Booking

Format: HH:mm

Example

Response

Attributes

chevron-rightroomPricehashtag

integer

The room pricing

chevron-rightextraFeehashtag

integer

Additional amount if you’re booking at high demand time

chevron-righttotalDiscounthashtag

integer

The total discount amount from promotion such as flash sale, direct discount

chevron-righttotalAmounthashtag

integer

The total booking amount needs to be paid at once for this booking, including extra fee if you’re booking at high demand time. This does not include promotion such as flash sale, direct discount

chevron-rightamountFromUserhashtag

integer

The total booking amount needs to be paid from user

Example