Docs
Supported Regions

Supported Regions

Get list of supported countries and regions

Supported Regions

Get the list of all supported countries and regional coverage.

Get Supported Regions

Endpoint: POST /api/v1/open/location/list

Request

Empty request body.

curl --location --request POST 'https://your-api-domain.com/api/v1/open/location/list' \
--header 'RT-AccessCode: YOUR_ACCESS_CODE' \
--header 'RT-SecretKey: YOUR_SECRET_KEY' \
--header 'Content-Type: application/json' \
--data '{}'

Response Parameters

NameTypeDescription
successBooleantrue = succeeded, false = failed
errorCodeStringError code when failed
errorMsgStringError message
objArrayList of supported locations

Location Object

FieldTypeDescriptionExample
locationCodeStringAlpha-2 ISO codeTH
locationNameStringLocation nameThailand
locationLogoStringFlag image URLhttps://static.redteago.com/img/logos/ThailandFlag.png

Example Success Response

{
    "errorCode": null,
    "errorMsg": null,
    "success": true,
    "obj": [
        {
            "locationCode": "TH",
            "locationName": "Thailand",
            "locationLogo": "https://static.redteago.com/img/logos/ThailandFlag.png"
        },
        {
            "locationCode": "JP",
            "locationName": "Japan",
            "locationLogo": "https://static.redteago.com/img/logos/JapanFlag.png"
        },
        {
            "locationCode": "US",
            "locationName": "United States",
            "locationLogo": "https://static.redteago.com/img/logos/UnitedStatesFlag.png"
        },
        {
            "locationCode": "!RG",
            "locationName": "Regional",
            "locationLogo": null
        },
        {
            "locationCode": "!GL",
            "locationName": "Global",
            "locationLogo": null
        }
    ]
}

Location Code Filters

Use these codes when filtering packages:

CodeDescription
TH, JP, US, etc.Specific country (Alpha-2 ISO)
!RGRegional multi-country packages
!GLGlobal worldwide packages

Building a Country Selector

// Fetch supported regions
const response = await fetch('https://your-api-domain.com/api/v1/open/location/list', {
    method: 'POST',
    headers: {
        'RT-AccessCode': 'YOUR_ACCESS_CODE',
        'RT-SecretKey': 'YOUR_SECRET_KEY',
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({})
});
const data = await response.json();
 
// Build dropdown options
const countryOptions = data.obj
    .filter(loc => !loc.locationCode.startsWith('!'))
    .map(location => ({
        value: location.locationCode,
        label: location.locationName,
        logo: location.locationLogo
    }));
 
// Add regional options
const specialOptions = data.obj
    .filter(loc => loc.locationCode.startsWith('!'))
    .map(location => ({
        value: location.locationCode,
        label: location.locationName
    }));
 
// Combine all options
const allOptions = [
    { type: 'group', label: 'Single Country', options: countryOptions },
    { type: 'group', label: 'Multi-Country', options: specialOptions }
];

Common destination countries by region:

Asia Pacific

  • Thailand (TH)
  • Japan (JP)
  • South Korea (KR)
  • Singapore (SG)
  • Vietnam (VN)
  • Indonesia (ID)
  • Malaysia (MY)
  • Philippines (PH)

Europe

  • United Kingdom (GB)
  • France (FR)
  • Germany (DE)
  • Italy (IT)
  • Spain (ES)
  • Netherlands (NL)
  • Switzerland (CH)

Americas

  • United States (US)
  • Canada (CA)
  • Mexico (MX)
  • Brazil (BR)

Middle East

  • United Arab Emirates (AE)
  • Saudi Arabia (SA)
  • Qatar (QA)

Use Cases

  1. Destination selector - Let customers pick travel destination
  2. Coverage maps - Show supported countries visually
  3. Package filtering - Filter packages by region
  4. Marketing - Highlight coverage in popular destinations