VerticalAPI

Authenticate

Authenticate method will return the Token ID that needs to be echoed back in every subsequent request..

Parameters

Name

Description

Accept

string

( header )

*required application/json

Accept - Encoding

string

( header )

*required gzip

Authorization

string

( header )

*required Your API Key

Customer-Ip

string

( header )

*required 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 )

*required "createToken" as a parameter

REQUEST

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

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

GET: https://your-end-point/api/v1/travel-api/flights/?action=createToken
					 

Response

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

{
  
      "TokenId": "b33c72c2-d87b-4e6a-a8a2-3a476ddb0fd0",
}