Obtain a Comprehensive Portfolio of Available Countries

This method is used to obtain a COUNTRIES 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 "getCountries" as a parameter

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": "getCountries"
}
					 

Response

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

[
    {
        "id": "1",
        "code": "AD",
        "name": "Andorra"
    },
    {
        "id": "2",
        "code": "AE",
        "name": "United Arab Emirates"
    },
    {
        "id": "3",
        "code": "AG",
        "name": "Antigua & Barbuda"
    },
    {
        "id": "4",
        "code": "AI",
        "name": "Anguilla"
    },
    {
        "id": "5",
        "code": "AL",
        "name": "Albania"
    },
    {
        "id": "6",
        "code": "AM",
        "name": "Armenia"
    },
    {
        "id": "7",
        "code": "AN",
        "name": "Netherlands Antilles"
    },
    {
        "id": "8",
        "code": "AO",
        "name": "Angola"
    },
    {
        "id": "9",
        "code": "AQ",
        "name": "Antarctica"
    }
 ]