s

Transfer Stations Search

This method is used to obtain a STATIONS portfolio.

Parameters

Name

Description

Accept

string

( header )

*required application/json

Accept - Encoding

string

( header )

*required gzip

Authorization

string

( header )

*required Your API Key

*required Your PID 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 "getStationlists" as a parameter

country_code

string

( query )

*required ISO 3166 (2 digit) country code

REQUEST

API Endpoint: https://www.abengines.com/api/v1/travel-api/transfer-booking/

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

POST: 
{
    "action": "getStationlists",
    "country_code": "IN"
}
					 

Response

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

[
    {
        "Name": "Agra Cantonment, Train Station",
        "Type": "T",
        "country_code": "IN",
        "atlas_code": "AGRS"
    },
    {
        "Name": "Ahmedabad, Train Station",
        "Type": "T",
        "country_code": "IN",
        "atlas_code": "AHMS"
    },
    {
        "Name": "Bangalore, Train Station",
        "Type": "T",
        "country_code": "IN",
        "atlas_code": "BLRS"
    },
    {
        "Name": "Chennai, Train Station",
        "Type": "T",
        "country_code": "IN",
        "atlas_code": "CNNS"
    },
    {
        "Name": "New Delhi, Train Station",
        "Type": "T",
        "country_code": "IN",
        "atlas_code": "DELS"
    },
    {
        "Name": "Hyderabad, Deccan Railway Station",
        "Type": "T",
        "country_code": "IN",
        "atlas_code": "HYDS"
    },
    {
        "Name": "Jodhpur, Railway Station",
        "Type": "T",
        "country_code": "IN",
        "atlas_code": "JAIRS"
    }
 ]