Nepex Travel API DocsGo to Profile

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.

GET/api/v1/platform/country?sourceCountry=Andorra&destinationCountry=Nepal

List 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 NameDescriptionData TypeRequiredExample
sourceCountryOrigin country query parameter.string (query)YesAndorra
destinationCountryDestination country query parameter.string (query)YesNepal

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 CodeErrorWhen It Happens
400Bad RequestsourceCountry or destinationCountry is missing.
401UnauthorizedMissing or invalid API key.
403ForbiddenKey is not allowed for this environment or request origin.
429Too Many RequestsPer-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