Booking

Booking API allows you to book rooms & rates confirmed by the price check response. The primary itinerary method of the Booking API creates a reservation for the selected hotel, room, rate and occupancy.

Parameters

Name

Description

Accept

string

( header )

Must be application/json

Accept - Encoding

string

( header )

Must be gzip

Authorization

string

( header )

Must be Your API Key

Customer-Ip

string

( header )

Must be IP address of the customer, as captured by your integration. Send IPV4 addresses only.

Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.

Also used for fraud recovery and other important analytics.

action

string

( query )

Must be "Make_Booking" as parameter

Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.

apiKey

string

( query )

Must be a valid API Key

The API Key provided to you is critical to the security of your request data – treat it like a password. Never include the raw value in any publicly accessible site or app code. You will be provided with an API key when you are approved to integrate TPS API.

ModeType

string

( query )

Must be either "Test" or "LIVE"

Your application must be approved from Adivaha Personnel. All the transactions will be treated as LIVE once the parameter is set to LIVE.

requestBody

array

( query )

Must be an array with the following parameters

hotelId

string

( query )

The ID of the property you want to gather information for.

checkIn

string

( query )

The date by which a guest must check in. Must follow YYYY-MM-DD format. ie. "checkIn:2019-05-30"

checkOut

string

( query )

The date by which a guest must check out. Must follow YYYY-MM-DD format. ie. "checkIn:2019-05-31"

rooms

number

( query )

Number of rooms to be set for the search, can be between 1-7

adults

number

( query )

Number of adults to be set for the search, can be between 1-4

children

number

( query )

Number of children to be set for the search, can be between 1-2

roomCode

number

( query )

Room code recieved with room availability API response.

roomName

sting

( query )

Name of the room that has to be reserved.

rateCode

sting

( query )

rateCode recieved with room availability API response.

actual_chargeableRate

sting

( query )

actual chargable rate received with room availability API response..

guest_Name

sting

( query )

A reservation notification will contain the name of the main guest

email_id

sting

( query )

Email id of the main guest

homePhone

sting

( query )

Phone/Contact/Mobile number of the main guest with ISD code

Response

The API returns an HTTP response, which generally includes the result of the request invocation

{
    "Status": 200,
    "status_message": "Booking has been confirmed ",
    "responseData": {
        "booking_number": 182558751,
        "booking_status": "CF"
    }
}