Visa APIv1

Visa API overview

Show which visas a traveller can apply for, fetch the form, and submit the application as an order.

The Plusvisa Visa API is the server-to-server API behind the e-Visa SDK. Your backend uses it to show a traveller which visas they can apply for, fetch the application form, and submit the completed application as an order. You then follow the order until a decision, and download the e-visa or letter.

Environments and hosts

There are two environments, each with its own host and its own keys. The API is the same in both.

EnvironmentHostKeys start with
Sandboxhttps://sandbox-sdk.plusvisa.compvsdk_test_
Productionhttps://sdk.plusvisa.compvsdk_live_

Build and test against the sandbox with a pvsdk_test_ key, then switch to production with a pvsdk_live_ key. Keys issued for the hosted API at https://sdk.plusvisa.xyz are used with that host. A key only works in its own environment: presenting a sandbox key to production, or the reverse, returns 401 invalid_api_key.

Quickstart

  1. List countries. GET /api/v1/countries fills citizenship, residency and destination pickers.

  2. Find visa types. GET /api/v1/visa-types with the traveller's citizenship, residency and travel_to. Each visa type has options, such as single or multiple entry.

  3. Get the forms. GET /api/v1/visa-types/{visa_type_id}/forms?residency=... returns the application form for each option, including the files the traveller has to provide. See Forms.

  4. Create the order. POST /api/v1/orders with the chosen option_id, the traveller's contact details and the answers you have, keyed by each field's key. The order starts as a draft.

  5. Complete it. PATCH /api/v1/orders/{reference}/answers for more answers, and POST /api/v1/orders/{reference}/documents for each file. missing on the order lists what is still needed.

  6. Submit. POST /api/v1/orders/{reference}/submit. From here the order is processed: follow it with GET /api/v1/orders/{reference}, GET /api/v1/orders or webhooks.

curl -G "$PLUSVISA_API_URL/api/v1/visa-types" \
  -d citizenship=AZE -d residency=AZE -d travel_to=GEO \
  -H "X-API-Key: $PLUSVISA_API_KEY"

Conventions

  • Country codes are ISO 3166-1 alpha-3 (AZE, GEO, VNM). Lowercase input is accepted; responses are always uppercase. Each country's roles say which parameter accepts it.
  • Ids are opaque strings. Store them as given; do not parse them.
  • Notes are free text. Escape them when rendering.
  • Timestamps are ISO 8601 in UTC.

Endpoints at a glance

MethodPathWhat it does
GET/api/v1/countriesCountries, alphabetical by name
GET/api/v1/visa-typesVisa types for a traveller (citizenship, residency, travel_to)
GET/api/v1/visa-types/{visa_type_id}One visa type
GET/api/v1/visa-types/{visa_type_id}/formsThe application form per option
POST/api/v1/ordersCreate a draft order (Idempotency-Key supported)
GET/api/v1/ordersYour orders (updated_since, status, cursor, limit)
GET/api/v1/orders/{reference}One order, with missing and action_required
PATCH/api/v1/orders/{reference}/answersMerge answers
POST/api/v1/orders/{reference}/documentsUpload one file (JPG, PNG, HEIC or PDF, up to 15 MB)
POST/api/v1/orders/{reference}/submitSubmit a draft, or resubmit after action_required
POST/api/v1/orders/{reference}/cancelCancel a draft
GET/api/v1/orders/{reference}/resultsResult files, once ready
GET/api/v1/orders/{reference}/results/{result_id}Download one result file
GET / POST/api/v1/orders/{reference}/messagesThe message thread with Plusvisa

Every endpoint, parameter and schema is in the API reference.