List Visa Types
Get visa types between source and destination countries.
After selecting source country and destination country, call this endpoint to get visa types.
Use the returned visa uuid to fetch full visa detail in the next API.
Authentication is required on every call using your API key.
This endpoint matches the same query format as /api/v1/visa/country?sourceCountry=Andorra&destinationCountry=Nepal.
/api/v1/platform/country?sourceCountry=Andorra&destinationCountry=NepalList Visa Types By Country Pair
Auth: API key (Bearer or x-api-key)
- Returns visa records available between sourceCountry and destinationCountry.
- Use source and destination values from countries + destinations endpoints.
Payload Fields
| Field Name | Description | Data Type | Required | Example |
|---|---|---|---|---|
| sourceCountry | Origin country query parameter. | string (query) | Yes | Andorra |
| destinationCountry | Destination country query parameter. | string (query) | Yes | Nepal |
Response JSON Example
{
"status": true,
"statusCode": 200,
"result": [
{
"uuid": "bf57c85d-9e89-4787-b5e8-09af1dfefd02",
"name": "Tourist Visa (Single Entry 30 Days)",
"sourceCountry": "Andorra",
"destinationCountry": "Nepal",
"type": "EXPRESS"
}
]
}Possible Errors
| Status Code | Error | When It Happens |
|---|---|---|
| 400 | Bad Request | sourceCountry or destinationCountry is missing. |
| 401 | Unauthorized | Missing or invalid API key. |
| 403 | Forbidden | Key is not allowed for this environment or request origin. |
| 429 | Too Many Requests | Per-key rate limit exceeded. |
Code Samples
BASE_URL="https://api.nepextravels.com"
API_KEY="nxp_xxx"
SOURCE_COUNTRY="Andorra"
DESTINATION_COUNTRY="Nepal"
response=$(curl -sS -w "\n%{http_code}" \
-H "Authorization: Bearer $API_KEY" \
--get "$BASE_URL/api/v1/platform/country" \
--data-urlencode "sourceCountry=$SOURCE_COUNTRY" \
--data-urlencode "destinationCountry=$DESTINATION_COUNTRY")
status=$(echo "$response" | tail -n1)
body=$(echo "$response" | sed '$d')
case "$status" in
200) echo "$body" ;;
400) echo "Bad Request: missing sourceCountry/destinationCountry" ;;
401) echo "Unauthorized API key" ;;
403) echo "Forbidden for key/origin/env" ;;
429) echo "Rate limit exceeded" ;;
*) echo "Unexpected error ($status): $body" ;;
esac