Nepex Travel API DocsGo to Profile

Visa Detail

Get complete visa detail using visa uuid.

Use this API with visa uuid from visa types list endpoint.

Response includes complete visa detail such as price, type, valid days, and notes.

This endpoint is equivalent to /api/v1/visa/:uuid for API-key integrations.

GET/api/v1/platform/visa/:uuid

Get Visa Detail

Auth: API key (Bearer or x-api-key)

  • Returns detail of a visa using uuid from visa types list by country pair.
  • Use this detail before creating submission.

Payload Fields

Field NameDescriptionData TypeRequiredExample
uuidVisa uuid in URL path.string (path uuid)Yesbf57c85d-9e89-4787-b5e8-09af1dfefd02

Response JSON Example

{
  "status": true,
  "statusCode": 200,
  "result": {
    "id": 641,
    "uuid": "bf57c85d-9e89-4787-b5e8-09af1dfefd02",
    "name": "Tourist Visa (Single Entry 30 Days)",
    "currency": "EUR",
    "price": 105,
    "sourceCountry": "Andorra",
    "destinationCountry": "United Arab Emirates",
    "type": "EXPRESS",
    "visaValidDays": 30,
    "requiredDocs": [],
    "notes": "",
    "agentPrice": 0
  }
}

Possible Errors

Status CodeErrorWhen It Happens
400Bad Requestuuid is missing or invalid.
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"
VISA_UUID="bf57c85d-9e89-4787-b5e8-09af1dfefd02"

response=$(curl -sS -w "\n%{http_code}" \
  -H "Authorization: Bearer $API_KEY" \
  "$BASE_URL/api/v1/platform/visa/$VISA_UUID")
status=$(echo "$response" | tail -n1)
body=$(echo "$response" | sed '$d')

case "$status" in
  200) echo "$body" ;;
  400) echo "Bad Request: invalid or missing visa uuid" ;;
  401) echo "Unauthorized API key" ;;
  403) echo "Forbidden for key/origin/env" ;;
  429) echo "Rate limit exceeded" ;;
  *)   echo "Unexpected error ($status): $body" ;;
esac