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.
| Environment | Host | Keys start with |
|---|---|---|
| Sandbox | https://sandbox-sdk.plusvisa.com | pvsdk_test_ |
| Production | https://sdk.plusvisa.com | pvsdk_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
List countries.
GET /api/v1/countriesfills citizenship, residency and destination pickers.Find visa types.
GET /api/v1/visa-typeswith the traveller'scitizenship,residencyandtravel_to. Each visa type hasoptions, such as single or multiple entry.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.Create the order.
POST /api/v1/orderswith the chosenoption_id, the traveller's contact details and the answers you have, keyed by each field'skey. The order starts as adraft.Complete it.
PATCH /api/v1/orders/{reference}/answersfor more answers, andPOST /api/v1/orders/{reference}/documentsfor each file.missingon the order lists what is still needed.Submit.
POST /api/v1/orders/{reference}/submit. From here the order is processed: follow it withGET /api/v1/orders/{reference},GET /api/v1/ordersor 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'srolessay 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
| Method | Path | What it does |
|---|---|---|
| GET | /api/v1/countries | Countries, alphabetical by name |
| GET | /api/v1/visa-types | Visa 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}/forms | The application form per option |
| POST | /api/v1/orders | Create a draft order (Idempotency-Key supported) |
| GET | /api/v1/orders | Your orders (updated_since, status, cursor, limit) |
| GET | /api/v1/orders/{reference} | One order, with missing and action_required |
| PATCH | /api/v1/orders/{reference}/answers | Merge answers |
| POST | /api/v1/orders/{reference}/documents | Upload one file (JPG, PNG, HEIC or PDF, up to 15 MB) |
| POST | /api/v1/orders/{reference}/submit | Submit a draft, or resubmit after action_required |
| POST | /api/v1/orders/{reference}/cancel | Cancel a draft |
| GET | /api/v1/orders/{reference}/results | Result files, once ready |
| GET | /api/v1/orders/{reference}/results/{result_id} | Download one result file |
| GET / POST | /api/v1/orders/{reference}/messages | The message thread with Plusvisa |
Every endpoint, parameter and schema is in the API reference.