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 flight.

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 "Flight_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

booking_id

string

( query )

Booking id is retrieved in Save booking API response.

email

string

( query )

Email id of the main guest

contact_number

number

( query )

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

address

string

( query )

Full address of the main guest.

city

string

( query )

City of the main guest.

country

string

( query )

Country of the main guest

packDetail

array

( query )

Array of the following parameters in a clubbed array "adults"

title

string

( query )

Title of the passenger (ie. Mr)

first_name

sting

( query )

First name of the passenger

last_name

sting

( query )

Last name of the passenger

gender

sting

( query )

Gender of the passenger

dob

sting

( query )

Date of birth of the passenger

travel_document

sting

( query )

Kind of travel document provided by passenger (ie, Pan Card, Voter ID, Passport)

document_number

sting

( query )

The actual number of above said document type.

Response

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

{
    "status": "Confirmed",
    "booking_id": "5cee2230a3027",
    "confirmation_number": "5cee2230a3094",
    "flightnumber": "4058297479692464"
}