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
| Name | Type | Description |
|---|---|---|
success | Boolean | true = succeeded, false = failed |
errorCode | String | Error code when failed |
errorMsg | String | Error message |
obj | Array | List of supported locations |
Location Object
| Field | Type | Description | Example |
|---|---|---|---|
locationCode | String | Alpha-2 ISO code | TH |
locationName | String | Location name | Thailand |
locationLogo | String | Flag image URL | https://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:
| Code | Description |
|---|---|
TH, JP, US, etc. | Specific country (Alpha-2 ISO) |
!RG | Regional multi-country packages |
!GL | Global 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 }
];Popular Destinations
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
- Destination selector - Let customers pick travel destination
- Coverage maps - Show supported countries visually
- Package filtering - Filter packages by region
- Marketing - Highlight coverage in popular destinations