Retrieve Booking

Discover how to use Retrieve API calls to retrieve existing bookings. This can be called directly with your API key with booking reference id. It returns details about a booking details associated with the booking id along with cancel links to cancel the booking.

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 "RetrieveBookingFlights" 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 )

The Booking ID generated at the time of booking.

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_id": 182558751,
        "booking_status": "CF",
        "confirmation_number": "5cee2230a3094",
        "flightnumber": "4058297479692464"

}