VerticalAPI

Flights SSR

This method is used to obtain the online prices of Special Service Request like Excess Baggage and Meal for LCC airlines like Indigo, Spice Jet, Air Asia, Air Arabia, Fly Dubai, etc.

Parameters

Name

Description

Accept

string

( header )

Must be application/json

Accept - Encoding

string

( header )

Must be gzip

Authorization

string

( header )

Must be Your PID

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.

Definition and request parameters for SSR

action

string

( query )

Must be "flightSSR" 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.

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.

ResultIndex

string

( query )

Result Index ie. "OB1"

TraceId

string

( query )

Trace Id (Get Trace Id from search response)

REQUEST

API Endpoint: https://your-end-point/api/v1/travel-api/flights/

header: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-YOUR-KEY',
'x-api-key:'ADD-YOUR-KEY'
);

POST:
{
  "action": "flightSSR",
  "mode": "Test",
  "ResultIndex": "OB1",
  "TraceId": "da0b789a-f1c7-43dd-bcda-772890fe6edd"
}
					 

Response

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

{
    "status": "200",
    "status_message": "OK",
    "responseData": {
        "Response": {
            "Meal": [
                {
                    "Code": "AVML",
                    "Description": "Vegetarian Hindu"
                },
                {
                    "Code": "BBML",
                    "Description": "Baby/Infant Food"
                },
                {
                    "Code": "BLML",
                    "Description": "Bland"
                },
                {
                    "Code": "CHML",
                    "Description": "Child Food"
                },
                {
                    "Code": "DBML",
                    "Description": "Diabetic"
                },
                {
                    "Code": "FPML",
                    "Description": "Fruit Meal"
                },
                {
                    "Code": "GFML",
                    "Description": "Gluten Intolerant"
                },
                {
                    "Code": "HFML",
                    "Description": "High Fiber"
                },
                {
                    "Code": "HNML",
                    "Description": "Hindu - Non Veg"
                },
                {
                    "Code": "KSML",
                    "Description": "Kosher"
                },
                {
                    "Code": "LCML",
                    "Description": "Low Calorie"
                },
                {
                    "Code": "LFML",
                    "Description": "Low Fat"
                },
                {
                    "Code": "LPML",
                    "Description": "Low Protein"
                },
                {
                    "Code": "LSML",
                    "Description": "Low Salt Meal"
                },
                {
                    "Code": "MOML",
                    "Description": "Moslem"
                },
                {
                    "Code": "NLML",
                    "Description": "Low Lactose Meal"
                },
                {
                    "Code": "ORML",
                    "Description": "Oriental"
                },
                {
                    "Code": "PRML",
                    "Description": "Low Purin"
                },
                {
                    "Code": "RVML",
                    "Description": "Raw Vegetarian"
                },
                {
                    "Code": "SFML",
                    "Description": "Seafood"
                },
                {
                    "Code": "SPML",
                    "Description": "Special Meal"
                },
                {
                    "Code": "VGML",
                    "Description": "Veg/Non Dairy"
                },
                {
                    "Code": "VJML",
                    "Description": "Vegetarian Jain"
                },
                {
                    "Code": "VLML",
                    "Description": "Veg/Milk/Eggs"
                },
                {
                    "Code": "VOML",
                    "Description": "Vegetarian Oriental"
                }
            ],
            "SeatPreference": [
                {
                    "Code": "A",
                    "Description": "Aisle"
                },
                {
                    "Code": "W",
                    "Description": "Window"
                }
            ],
            "ResponseStatus": 1,
            "Error": {
                "ErrorCode": 0,
                "ErrorMessage": ""
            },
            "TraceId": "da0b789a-f1c7-43dd-bcda-772890fe6edd"
        }
    }
}