Check Flight

This document describes the parameters used when confirming the price of found flights.

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 "Check_Flight" 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_token

string

( query )

Booking token received with the Flight Search.

adults

number

( query )

Number of adults to be set for the search.

children

number

( query )

Number of children to be set for the search

infants

number

( query )

Number of infants to be set for the search

Response

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

{
    "server_time": 1559110275,
    "pnum": 1,
    "flights": [
        {
            "id": "0711207c46870000b84e2786_0",
            "combination_trip_id": "0711207c46870000b84e2786",
            "original_trip_id": "0711207c46870000b84e2786",
            "atime": 1560040500,
            "dtime": 1560031200,
            "atime_utc": 1560020700,
            "dtime_utc": 1560011400,
            "atime_unix": 1560040500,
            "dtime_unix": 1560031200,
            "atime_unix_utc": 1560020700,
            "dtime_unix_utc": 1560011400,
            "dst": "GOI",
            "src": "DEL",
            "flight_no": "883",
            "airline": {
                "id": 82,
                "code": "AI",
                "name": "Air India Limited",
                "url": "",
                "checkin": 0,
                "close_booking_hours": 4,
                "booking_doc_needed": 2,
                "airport_checkin": 0,
                "passengers_in_search": 1,
                "doing_online_checkin": null,
                "maximum_passengers": 9,
                "grade": "B",
                "virtual_card_req": false,
                "country": null,
                "carrier_type": "airline",
                "parent_carrier": null,
                "checkin_closure": 0,
                "shorter_stopovers_allowed": 1,
                "deprecated": false,
                "book_fee": 0,
                "fee_airline": 0,
                "search_priority": null,
                "fee_instead": 0,
                "fee_percent": 0,
                "flight_change_fee": 50,
                "threshold_child": null,
                "threshold_teen": null,
                "threshold_adult": null,
                "fees_per_source": [],
                "affil_url": null,
                "temporary_disabled": null,
                "non_active_reason": null,
                "lcc": null,
                "active": 1,
                "iatacode": "AI",
                "is_passenger_cardholder": null,
                "is_private_fares_allowed": null,
                "luggage_only_during_checkin_airlines": null,
                "luggage_only_on_web": null,
                "mmb_link": null,
                "payment_card_copy_eticket_requirement": false,
                "skip_subairline_merge": null,
                "Name": "Air India Limited",
                "iata": "AI",
                "hand_length": 55,
                "hand_width": 25,
                "hand_height": 35,
                "hand_weight": 8,
                "hold_weight": 25,
                "hold_length": 78,
                "hold_width": 28,
                "hold_height": 52,
                "hand2_length": 40,
                "hand2_width": 10,
                "hand2_height": 20,
                "hand2_weight": 5,
                "hand2_note": "",
                "hand_note": "",
                "hold_note": ""
            },
            "operating_airline": {
                "iata": "AI",
                "name": "Air India Limited"
            },
            "source": "",
            "scraping_start": 0,
            "extras": "AI",
            "passengers_flight_check": {
                "1": {
                    "eur": 72.93,
                    "invalid": false,
                    "last_checked": 0
                }
            },
            "price": 72.93,
            "eur": 72.93,
            "found_on": "",
            "invalid": 0,
            "timestamp": null,
            "refreshed": 0,
            "refresh_ttl": 120,
            "refresh_period": 5,
            "fare_basis": "",
            "fare_category": "M",
            "fare_class": "U",
            "is_cabin_bags_with_priority_boarding": false,
            "source_name": "",
            "source_url": "",
            "checkin": 1560031200,
            "src_country": "IN",
            "dst_country": "IN",
            "src_station": "Indira Gandhi International",
            "dst_station": "Goa International",
            "infants_conditions": {
                "trolley": false,
                "hand_weight": 0
            },
            "eur_infants": 72.93,
            "eur_children": 72.93,
            "max_passengers_for_price": 1,
            "src_name": "New Delhi",
            "dst_name": "Goa",
            "return": 0,
            "guarantee": false,
            "guarantee_disclaimer": "",
            "bags_recheck_required": false,
            "bags_recheck_disclaimer": ""
        }
    ],
    "flights_checked": false,
    "flights_to_check": true,
    "flights_real_checked": false,
    "flights_invalid": false,
    "max_passengers": 9,
    "infants_conditions": {
        "trolley": false,
        "hand_weight": 0
    },
    "document_options": {
        "document_need": 2,
        "checkin_date": 1559858400,
        "airport_checkin_price": 0
    },
    "visas_agreement_requiered": true,
    "transfers": [],
    "route": [
        "DEL",
        "GOI"
    ],
    "book_fee": 0,
    "fee_airline": 0,
    "extra_fee": 0,
    "flights_price": 72.93,
    "total": 84.19,
    "sp_fee": 10.94,
    "flight_real_price": 72.93,
    "one_passenger": 84.19,
    "credits_price": 84.19,
    "orig_price_usage": true,
    "price_change": false,
    "orig_price": 84.19,
    "insurance_data": {
        "travel_basic": {
            "price": 14.53,
            "product_num": "01"
        },
        "travel_plus": {
            "price": 30.53,
            "product_num": "03"
        },
        "tarif": "TA",
        "valid_from": 1559952000,
        "valid_to": 1561161600,
        "skysilver": {
            "price": 14.53,
            "product_num": "01"
        },
        "skygold": {
            "price": 30.53,
            "product_num": "03"
        }
    },
    "insurance_price": {
        "travel_basic": 14.53,
        "travel_plus": 30.53,
        "skysilver": 14.53,
        "skygold": 30.53
    },
    "adults_price": 84.19,
    "children_price": 0,
    "infants_price": 0,
    "bags": {
        "_is_deprecated": true,
        "definitions": {
            "cabin_bag": [
                {
                    "price": 0,
                    "conditions": {
                        "passenger_groups": [
                            "adult",
                            "child"
                        ]
                    },
                    "category": "cabin_bag",
                    "restrictions": {
                        "weight": 8,
                        "length": 55,
                        "height": 35,
                        "width": 25
                    },
                    "currency": "EUR",
                    "note": null,
                    "_warning": "DEPRECATED DO NOT USE!"
                }
            ]
        }
    },
    "bags_fee": 0,
    "bags_fee_split": {
        "base": 0,
        "service": 0,
        "amount": 0,
        "currency": "EUR"
    },
    "bags_price": {
        "1": 0
    },
    "bags_price_split": {
        "1": {
            "amount": 0,
            "currency": "EUR",
            "base": 0,
            "service": 0,
            "service_flat": 0
        },
        "_abp": 0.2
    },
    "hand_bags_price": [],
    "bags_restrictions": [],
    "additional_order_baggage_fee": 0,
    "luggage": [
        55,
        25,
        35,
        8,
        25,
        78,
        28,
        52,
        "",
        40,
        10,
        20,
        5,
        "",
        ""
    ],
    "segments": [],
    "currency": "EUR",
    "conversion": {
        "currency": "USD",
        "amount": 93.99,
        "bags_price": {
            "1": 0
        },
        "additional_order_baggage_fee": 0,
        "adults_price": 93.99,
        "children_price": 0,
        "infants_price": 0,
        "adivaha_surcharge": 15,
        "adivaha_actual_price": 93.99,
        "without_discount_total": 93.99
    },
    "booking_token": "2ecZSda9kty0xF/hxcwoiFdUDxMYRscYX2JssMhrILNuotgIqMiRnJ8pGLNuJVy dc2SIxu AwDet7OLjnaXfv0Eq94z8o7PAxzCTmNX7MUDbyv4nz2OxxLEAr2//rV0cMISXb1axa nvndYSInYfhJFRP1b6VqFUwrjcqCCsJP5nFQjKBhcHi8SO9jz/7dmcOxYg4wpSa5rS78F Fv32nagirpt9WBJ5I2PhdBHwj308BfpX1hVeRF1uFyS9wkpZgJQezLIeRDRpo6RCILjBJBaSuPGz9Vv34js0xYhWAizo3/EJ1Pjfu/XYjEgh0y0uj0B7CpX6FVIxzWabr871zL3J2L4 f9OJyNyGrJV77tWlnLg59sKkMO4wxQkRsOApoBGblEE7rPqfl9T0tUpF/84s45P34Z/U4ds/3inRsJJ0o18RLRB7tIxlW5GWViCQZmi0pLLaQw9pVO7PJLRtNSw1WR5g7mNfSC5wNlLMfJj9E427RJI1ByaqDZh74nIgj4vHq1kHbmQ9qMA9dGEXj/FwOH4IS2VEll1vCJWoERptJxW0wM71FzEedGOOy2ux7T5W8zQ0JrFoANcCDfPj3EQwROMqcTZVmRkyr5y3Pv7sBKHQub wbmXyh33ATogzM5jgCq6VJh5okjddluMaxIRijS5sBLjxs7MJE2wOMLcauqa6joI/FteEHNUaowa010ID1m8F 76H0a5dJjZpe7HomdMkH61v4nm1Itcr9Nz2LD3uMpT6A/FU7BwcWfzYcBc1EBp0i0v6vYQMUgXvz4 j6Vdry7ZP4Srm CCugEdBfC7iHg wiMj/hkJB/2Z6e4UoqKVxkkUt3TKRL4UpE geYRlHzb5hRAjYUT vtx9lBT10dM5f/wNOsn0eVRhNlNPtUgF/M327l5EBGx6mw==",
    "adult_threshold": 12,
    "age_category_thresholds": {
        "adult": null,
        "child": null
    },
    "additional_services": [],
    "baggage": {
        "definitions": {
            "hold_bag": [
                {
                    "price": {
                        "currency": "EUR",
                        "amount": 0,
                        "base": 0,
                        "service": 0,
                        "service_flat": 0,
                        "merchant": 0
                    },
                    "conditions": {
                        "passenger_groups": [
                            "adult",
                            "child"
                        ]
                    },
                    "category": "hold_bag",
                    "restrictions": {
                        "dimensions_sum": 158,
                        "weight": 25,
                        "length": 78,
                        "height": 52,
                        "width": 28
                    }
                }
            ],
            "hand_bag": [
                {
                    "price": {
                        "currency": "EUR",
                        "amount": 0,
                        "base": 0,
                        "service": 0,
                        "service_flat": 0,
                        "merchant": 0
                    },
                    "conditions": {
                        "passenger_groups": [
                            "adult",
                            "child"
                        ]
                    },
                    "category": "personal_item",
                    "restrictions": {
                        "weight": 5,
                        "length": 40,
                        "height": 20,
                        "width": 10
                    }
                },
                {
                    "price": {
                        "currency": "EUR",
                        "amount": 0,
                        "base": 0,
                        "service": 0,
                        "service_flat": 0,
                        "merchant": 0
                    },
                    "conditions": {
                        "passenger_groups": [
                            "adult",
                            "child"
                        ]
                    },
                    "category": "cabin_bag",
                    "restrictions": {
                        "weight": 8,
                        "length": 55,
                        "height": 35,
                        "width": 25
                    }
                }
            ]
        },
        "combinations": {
            "hold_bag": [
                {
                    "indices": [
                        0
                    ],
                    "category": "hold_bag",
                    "conditions": {
                        "passenger_groups": [
                            "adult",
                            "child"
                        ]
                    },
                    "price": {
                        "currency": "EUR",
                        "amount": 0,
                        "base": 0,
                        "service": 0,
                        "service_flat": 0,
                        "merchant": 0
                    }
                },
                {
                    "indices": [],
                    "category": "hold_bag",
                    "conditions": {
                        "passenger_groups": [
                            "infant"
                        ]
                    },
                    "price": {
                        "currency": "EUR",
                        "amount": 0,
                        "base": 0,
                        "service": 0,
                        "service_flat": 0,
                        "merchant": 0
                    }
                }
            ],
            "hand_bag": [
                {
                    "indices": [
                        0,
                        1
                    ],
                    "category": "hand_bag",
                    "conditions": {
                        "passenger_groups": [
                            "adult",
                            "child"
                        ]
                    },
                    "price": {
                        "currency": "EUR",
                        "amount": 0,
                        "base": 0,
                        "service": 0,
                        "service_flat": 0,
                        "merchant": 0
                    }
                },
                {
                    "indices": [],
                    "category": "hand_bag",
                    "conditions": {
                        "passenger_groups": [
                            "infant"
                        ]
                    },
                    "price": {
                        "currency": "EUR",
                        "amount": 0,
                        "base": 0,
                        "service": 0,
                        "service_flat": 0,
                        "merchant": 0
                    }
                }
            ]
        },
        "notices": []
    },
    "eur_payment_price": 84.19
}