Visa APIv1

API reference

Every Visa API endpoint, webhook event, error code and schema.

Base URL: the host your key was issued for, for example https://sdk.plusvisa.xyz (see hosts). Authenticate with X-API-Key from your servers only. Examples use $PLUSVISA_API_URL and $PLUSVISA_API_KEY. The guides explain the flow: overview, orders, webhooks, errors.

Generated from https://sdk.plusvisa.xyz/openapi.json · Plusvisa API 0.1.0 · OpenAPI 3.1.0 · 15 operations · 4 webhook events

Authentication

  • ApiKey — apiKey in the X-API-Key header: Your Plusvisa API key.

Countries

Countries for citizenship, residency and destination pickers, with the role each can play.

get /api/v1/countries

List countries

All supported countries, sorted by name in the response language.

Each country's roles say where it can be used: CITIZENSHIP countries as citizenship, RESIDENCY countries as residency and DESTINATION countries as travel_to.

Auth: ApiKey (X-API-Key header)

curl "$PLUSVISA_API_URL/api/v1/countries" \
  -H "X-API-Key: $PLUSVISA_API_KEY"

Parameters

NameInTypeNotes
accept-languageheaderstring | nullPreferred language for catalog text: en, az or ru. Other values fall back to English. e.g. "az"

Responses

200 Successful Response

application/json

CountryOut[]

401 Unauthorized

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

Visa types

Visa types a traveller can apply for, based on their citizenship, where they live and where they are going, with the options you can order.

get /api/v1/visa-types

Find visa types for a traveller

Visa types the traveller can apply for, given their citizenship, country of residence and destination.

One category can appear more than once, for example an eVisa and an embassy visa for tourism. Each visa type has options, such as single or multiple entry, with their own validity, processing time and documents; an order is for one option. An empty list means nothing is offered for this combination.

Auth: ApiKey (X-API-Key header)

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

Parameters

NameInTypeNotes
citizenship *querystringTraveller's citizenship, ISO 3166-1 alpha-3. pattern ^[A-Za-z]{3}$ · e.g. "AZE"
residency *querystringCountry the traveller lives in, ISO 3166-1 alpha-3. pattern ^[A-Za-z]{3}$ · e.g. "AZE"
travel_to *querystringDestination country, ISO 3166-1 alpha-3. pattern ^[A-Za-z]{3}$ · e.g. "GEO"
accept-languageheaderstring | nullPreferred language for catalog text: en, az or ru. Other values fall back to English. e.g. "az"

Responses

200 Successful Response

application/json

VisaTypeOut[]

401 Unauthorized

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

get /api/v1/visa-types/{visa_type_id}

Get a visa type

One visa type, as returned by Find visa types, for a traveller living in residency.

Use it to refresh a visa type you stored, or to show its options. The response is the same shape as one item of the list.

Auth: ApiKey (X-API-Key header)

curl "$PLUSVISA_API_URL/api/v1/visa-types/0b5f3a52-6a4e-4c2d-9d8e-5f0f7c2d1a11?residency=AZE" \
  -H "X-API-Key: $PLUSVISA_API_KEY"

Parameters

NameInTypeNotes
visa_type_id *pathstringA visa type id, as returned by Find visa types. e.g. "0b5f3a52-6a4e-4c2d-9d8e-5f0f7c2d1a11"
residency *querystringCountry the traveller lives in, ISO 3166-1 alpha-3. pattern ^[A-Za-z]{3}$ · e.g. "AZE"
accept-languageheaderstring | nullPreferred language for catalog text: en, az or ru. Other values fall back to English. e.g. "az"

Responses

200 Successful Response

application/json

FieldTypeNotes
id *stringPass to Get a visa type and Get application forms, and as visa_type_id when creating an order.
travel_to *stringDestination country, ISO 3166-1 alpha-3.
visa_type *VisaTypeInfo
visa_status *VisaStatusInfo
notesstring | nullDetails about this visa type.
options *VisaOptionOut[]Variants you can order, e.g. single or multiple entry. An order is for one option. Every listed option has an application form.

* required

401 Unauthorized

application/json · error envelope

404 Not Found

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

Forms

The application form for a visa type option: sections of typed fields, presented in the order given. Submit each answer under the field's key, in the format its field_type expects:

field_typeAnswer format
TEXT, TEXTAREA, EMAIL, PHONEstring
DATEYYYY-MM-DD
NUMBERJSON number, such as 42 or 1.5
BOOLtrue or false
CHOICEone option code
MULTI_CHOICEarray of option codes, such as ["en", "ru"]
COUNTRYISO 3166-1 alpha-3, uppercase, such as AZE

Answers come back in the same formats on every order, and the values of a condition on a COUNTRY field are alpha-3 codes too. A malformed answer is refused with invalid_answers.

Well-known fields have a descriptive key such as surname; every other field's key is an opaque id. Keys do not change when the form is republished; they change only if the question itself is removed and added again. Files are not part of sections: uploads lists the files to provide, and an upload's field_key names the question it belongs to.

Fields and uploads can carry conditions, each tying them to another field's answer (field is that field's key). A condition holds only once the source field is answered:

actionEffect while the condition holds
SHOWThe field is shown; otherwise it is hidden and never required.
REQUIREThe field is required; otherwise it is optional.
ELIGIBLEThe traveller can apply; otherwise they cannot.

EQ compares the answer with the first of values, NEQ requires it to differ, IN, ANY and ALL require it to be one of values, and NOT_IN requires it to be none of them.

get /api/v1/visa-types/{visa_type_id}/forms

Get application forms

The application form for each option of a visa type, for a traveller living in residency.

Each form carries its option_id. Show the sections in the order given, and collect the answers keyed by each field's key. uploads lists the files the traveller has to provide.

Auth: ApiKey (X-API-Key header)

curl "$PLUSVISA_API_URL/api/v1/visa-types/0b5f3a52-6a4e-4c2d-9d8e-5f0f7c2d1a11/forms?residency=AZE" \
  -H "X-API-Key: $PLUSVISA_API_KEY"

Parameters

NameInTypeNotes
visa_type_id *pathstringA visa type id, as returned by Find visa types. e.g. "0b5f3a52-6a4e-4c2d-9d8e-5f0f7c2d1a11"
residency *querystringCountry the traveller lives in, ISO 3166-1 alpha-3. pattern ^[A-Za-z]{3}$ · e.g. "AZE"
accept-languageheaderstring | nullPreferred language for catalog text: en, az or ru. Other values fall back to English. e.g. "az"

Responses

200 Successful Response

application/json

OptionFormOut[]

401 Unauthorized

application/json · error envelope

404 Not Found

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

Orders

Create an order, fill in its answers and documents while it is a draft, then submit it and follow it through processing: fix what we ask for, download the result files and message us about it.

get /api/v1/orders

List orders

Your orders, oldest change first, so you can poll with updated_since to follow changes.

List items do not include missing; fetch the order for that.

Auth: ApiKey (X-API-Key header)

curl "$PLUSVISA_API_URL/api/v1/orders" \
  -H "X-API-Key: $PLUSVISA_API_KEY"

Parameters

NameInTypeNotes
updated_sincequerystring (date-time) | nullOnly orders changed at or after this time (ISO 8601).
statusqueryPartnerStatus | nullOnly orders in this status.
cursorquerystring | nullnext_cursor from the previous page.
limitqueryintegerPage size. 1–100 · default 50

Responses

200 Successful Response

application/json

FieldTypeNotes
items *OrderOut[]
next_cursor *string | nullPass as cursor to get the next page. null on the last page.

* required

401 Unauthorized

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

post /api/v1/orders

Create an order

Start an order for one option of a visa type.

The visa type must be offered for the traveller (see Find visa types) and the option must be one of its options. Send what you already have in answers, keyed by field key (see Get application forms); the order is created as a draft and missing lists what is still needed. Add answers and documents, then submit.

Auth: ApiKey (X-API-Key header)

curl -X POST "$PLUSVISA_API_URL/api/v1/orders" \
  -H "X-API-Key: $PLUSVISA_API_KEY" \
  -H "Content-Type: application/json" -d @body.json \
  -H "Idempotency-Key: $(uuidgen)"

Parameters

NameInTypeNotes
idempotency-keyheaderstring | nullA unique value (1-255 printable ASCII characters) that makes this write safe to retry: repeating the request with the same key and body returns the original response instead of acting twice. Keys are remembered for 24 hours.

Request body

application/json

FieldTypeNotes
citizenship *stringTraveller's citizenship, ISO 3166-1 alpha-3. pattern ^[A-Za-z]{3}$ · e.g. "AZE"
residency *stringCountry the traveller lives in, ISO 3166-1 alpha-3. pattern ^[A-Za-z]{3}$ · e.g. "AZE"
travel_to *stringDestination country, ISO 3166-1 alpha-3. pattern ^[A-Za-z]{3}$ · e.g. "GEO"
visa_type_id *stringA visa type id offered for this traveller. length 1–64
option_id *stringThe id of one of the visa type's options. length 1–64
applicantApplicantIn | nullContact details of the traveller.
answersobjectAnswers to the option's form, keyed by field key, in the format each field_type expects. Answers may be incomplete: send the rest with Update answers before you submit.
client_referencestring | nullYour own reference for the order, echoed back in responses. It must be unique among your orders.

* required

Responses

201 Successful Response

application/json

FieldTypeNotes
reference *stringPlusvisa order reference. Mention it when contacting us.
client_reference *string | nullYour reference, as submitted.
status *PartnerStatusWhere an order is in its lifecycle.
visa_type_id *string
option_id *string
citizenship *string
residency *string
travel_to *string
applicant *ApplicantOut
answers *objectCurrent answers, keyed by field key.
documents *OrderDocument[]
missing *MissingItems | nullWhat is still needed before submit. Present while the order is a draft or action_required, null otherwise.
action_requiredActionRequired | nullWhat to fix. Present only while the status is action_required.
refusal_reasonstring | nullWhy the visa was refused, when Plusvisa gave a reason.
has_resultsbooleantrue once result files such as an e-visa are available to download. default false
created_at *string (date-time)
updated_at *string (date-time)
submitted_at *string (date-time) | null
cancelled_at *string (date-time) | null
decided_at *string (date-time) | nullWhen the visa decision was recorded.

* required

401 Unauthorized

application/json · error envelope

409 Conflict

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

get /api/v1/orders/{reference}

Get an order

The current state of an order. While it is a draft, missing says what is still needed.

Sensitive answers such as passport numbers are returned only while the order is a draft.

Auth: ApiKey (X-API-Key header)

curl "$PLUSVISA_API_URL/api/v1/orders/PV-4244204A" \
  -H "X-API-Key: $PLUSVISA_API_KEY"

Parameters

NameInTypeNotes
reference *pathstringThe order reference. length 0–16 · e.g. "PV-4244204A"

Responses

200 Successful Response

application/json

FieldTypeNotes
reference *stringPlusvisa order reference. Mention it when contacting us.
client_reference *string | nullYour reference, as submitted.
status *PartnerStatusWhere an order is in its lifecycle.
visa_type_id *string
option_id *string
citizenship *string
residency *string
travel_to *string
applicant *ApplicantOut
answers *objectCurrent answers, keyed by field key.
documents *OrderDocument[]
missing *MissingItems | nullWhat is still needed before submit. Present while the order is a draft or action_required, null otherwise.
action_requiredActionRequired | nullWhat to fix. Present only while the status is action_required.
refusal_reasonstring | nullWhy the visa was refused, when Plusvisa gave a reason.
has_resultsbooleantrue once result files such as an e-visa are available to download. default false
created_at *string (date-time)
updated_at *string (date-time)
submitted_at *string (date-time) | null
cancelled_at *string (date-time) | null
decided_at *string (date-time) | nullWhen the visa decision was recorded.

* required

401 Unauthorized

application/json · error envelope

404 Not Found

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

get /api/v1/orders/{reference}/results

List result files

Files Plusvisa attached after the decision, such as the e-visa or a refusal letter.

The list is empty until a file is ready. has_results on the order tells you when to look.

Auth: ApiKey (X-API-Key header)

curl "$PLUSVISA_API_URL/api/v1/orders/PV-4244204A/results" \
  -H "X-API-Key: $PLUSVISA_API_KEY"

Parameters

NameInTypeNotes
reference *pathstringThe order reference. length 0–16 · e.g. "PV-4244204A"

Responses

200 Successful Response

application/json

ResultOut[]

401 Unauthorized

application/json · error envelope

404 Not Found

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

get /api/v1/orders/{reference}/results/{result_id}

Download a result file

The result file as an attachment, streamed through without being held in memory.

Take the id from List result files.

Auth: ApiKey (X-API-Key header)

curl "$PLUSVISA_API_URL/api/v1/orders/PV-4244204A/results/<result_id>" \
  -H "X-API-Key: $PLUSVISA_API_KEY"

Parameters

NameInTypeNotes
reference *pathstringThe order reference. length 0–16 · e.g. "PV-4244204A"
result_id *pathstringThe result id. length 0–64

Responses

200 The file itself, streamed.

application/octet-stream

string (binary)

401 Unauthorized

application/json · error envelope

404 Not Found

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

get /api/v1/orders/{reference}/messages

List messages

The conversation with Plusvisa about this order, oldest first.

Poll with since to pick up new messages; updated_at on the order also moves when one arrives.

Auth: ApiKey (X-API-Key header)

curl "$PLUSVISA_API_URL/api/v1/orders/PV-4244204A/messages" \
  -H "X-API-Key: $PLUSVISA_API_KEY"

Parameters

NameInTypeNotes
reference *pathstringThe order reference. length 0–16 · e.g. "PV-4244204A"
sincequerystring (date-time) | nullOnly messages sent after this time (ISO 8601).

Responses

200 Successful Response

application/json

MessageOut[]

401 Unauthorized

application/json · error envelope

404 Not Found

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

post /api/v1/orders/{reference}/messages

Send a message

Write to Plusvisa about this order. Text only, at most 4000 characters.

You can write in any status except expired.

Auth: ApiKey (X-API-Key header)

curl -X POST "$PLUSVISA_API_URL/api/v1/orders/PV-4244204A/messages" \
  -H "X-API-Key: $PLUSVISA_API_KEY" \
  -H "Content-Type: application/json" -d @body.json \
  -H "Idempotency-Key: $(uuidgen)"

Parameters

NameInTypeNotes
reference *pathstringThe order reference. length 0–16 · e.g. "PV-4244204A"
idempotency-keyheaderstring | nullA unique value (1-255 printable ASCII characters) that makes this write safe to retry: repeating the request with the same key and body returns the original response instead of acting twice. Keys are remembered for 24 hours.

Request body

application/json

FieldTypeNotes
body *stringThe message text, at most 4000 characters once trimmed. length 1–∞

* required

Responses

201 Successful Response

application/json

FieldTypeNotes
id *stringOpaque message id.
author *"you" | "plusvisa"Who wrote it.
body *string
created_at *string (date-time)

* required

401 Unauthorized

application/json · error envelope

404 Not Found

application/json · error envelope

409 Conflict

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

patch /api/v1/orders/{reference}/answers

Update answers

Add or change answers on a draft order. Keys you leave out are kept; send null to clear an answer. On an action_required order only the answers in action_required.items can change (not_editable_item otherwise).

Auth: ApiKey (X-API-Key header)

curl -X PATCH "$PLUSVISA_API_URL/api/v1/orders/PV-4244204A/answers" \
  -H "X-API-Key: $PLUSVISA_API_KEY" \
  -H "Content-Type: application/json" -d @body.json \
  -H "Idempotency-Key: $(uuidgen)"

Parameters

NameInTypeNotes
reference *pathstringThe order reference. length 0–16 · e.g. "PV-4244204A"
idempotency-keyheaderstring | nullA unique value (1-255 printable ASCII characters) that makes this write safe to retry: repeating the request with the same key and body returns the original response instead of acting twice. Keys are remembered for 24 hours.

Request body

application/json

FieldTypeNotes
answers *objectAnswers to add or change, keyed by field key. Keys you omit are kept.

* required

Responses

200 Successful Response

application/json

FieldTypeNotes
reference *stringPlusvisa order reference. Mention it when contacting us.
client_reference *string | nullYour reference, as submitted.
status *PartnerStatusWhere an order is in its lifecycle.
visa_type_id *string
option_id *string
citizenship *string
residency *string
travel_to *string
applicant *ApplicantOut
answers *objectCurrent answers, keyed by field key.
documents *OrderDocument[]
missing *MissingItems | nullWhat is still needed before submit. Present while the order is a draft or action_required, null otherwise.
action_requiredActionRequired | nullWhat to fix. Present only while the status is action_required.
refusal_reasonstring | nullWhy the visa was refused, when Plusvisa gave a reason.
has_resultsbooleantrue once result files such as an e-visa are available to download. default false
created_at *string (date-time)
updated_at *string (date-time)
submitted_at *string (date-time) | null
cancelled_at *string (date-time) | null
decided_at *string (date-time) | nullWhen the visa decision was recorded.

* required

401 Unauthorized

application/json · error envelope

404 Not Found

application/json · error envelope

409 Conflict

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

post /api/v1/orders/{reference}/documents

Upload a document

Attach one file to a draft order, in a single request (multipart/form-data).

Accepted types are JPG, PNG, HEIC and PDF, up to 15 MB. The file is checked before it is stored; a file that is not accepted answers upload_rejected with the reason. Uploading again for the same key replaces an accepted file. On an action_required order only the documents in action_required.items can be uploaded.

Auth: ApiKey (X-API-Key header)

curl -X POST "$PLUSVISA_API_URL/api/v1/orders/PV-4244204A/documents" \
  -H "X-API-Key: $PLUSVISA_API_KEY" \
  -F key=<upload key> -F [email protected] \
  -H "Idempotency-Key: $(uuidgen)"

Parameters

NameInTypeNotes
reference *pathstringThe order reference. length 0–16 · e.g. "PV-4244204A"
idempotency-keyheaderstring | nullA unique value (1-255 printable ASCII characters) that makes this write safe to retry: repeating the request with the same key and body returns the original response instead of acting twice. Keys are remembered for 24 hours.

Request body

multipart/form-data

FieldTypeNotes
key *stringThe upload key from the application form (uploads[].key). length 0–128
file *stringJPG, PNG, HEIC or PDF, at most 15 MB.

* required

Responses

201 Successful Response

application/json

FieldTypeNotes
key *stringThe upload key from the application form.
filename *string
size_bytes *integer
status *"uploading" | "accepted" | "rejected"uploading until the file is stored, then accepted or rejected.
rejected_reasonstring | nullWhy a document was rejected.
replaced_by_plusvisabooleantrue when Plusvisa replaced the file you uploaded. default false

* required

401 Unauthorized

application/json · error envelope

404 Not Found

application/json · error envelope

409 Conflict

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

post /api/v1/orders/{reference}/submit

Submit an order

Submit a draft order for processing, or resubmit an action_required order once you have fixed its items. Every required answer and document must be in place: otherwise the order stays as it was and order_incomplete lists what is missing.

After submit the order can no longer be changed or cancelled.

Auth: ApiKey (X-API-Key header)

curl -X POST "$PLUSVISA_API_URL/api/v1/orders/PV-4244204A/submit" \
  -H "X-API-Key: $PLUSVISA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Parameters

NameInTypeNotes
reference *pathstringThe order reference. length 0–16 · e.g. "PV-4244204A"
idempotency-keyheaderstring | nullA unique value (1-255 printable ASCII characters) that makes this write safe to retry: repeating the request with the same key and body returns the original response instead of acting twice. Keys are remembered for 24 hours.

Responses

200 Successful Response

application/json

FieldTypeNotes
reference *stringPlusvisa order reference. Mention it when contacting us.
client_reference *string | nullYour reference, as submitted.
status *PartnerStatusWhere an order is in its lifecycle.
visa_type_id *string
option_id *string
citizenship *string
residency *string
travel_to *string
applicant *ApplicantOut
answers *objectCurrent answers, keyed by field key.
documents *OrderDocument[]
missing *MissingItems | nullWhat is still needed before submit. Present while the order is a draft or action_required, null otherwise.
action_requiredActionRequired | nullWhat to fix. Present only while the status is action_required.
refusal_reasonstring | nullWhy the visa was refused, when Plusvisa gave a reason.
has_resultsbooleantrue once result files such as an e-visa are available to download. default false
created_at *string (date-time)
updated_at *string (date-time)
submitted_at *string (date-time) | null
cancelled_at *string (date-time) | null
decided_at *string (date-time) | nullWhen the visa decision was recorded.

* required

401 Unauthorized

application/json · error envelope

404 Not Found

application/json · error envelope

409 Conflict

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

post /api/v1/orders/{reference}/cancel

Cancel an order

Cancel a draft order. A submitted order cannot be cancelled here.

Auth: ApiKey (X-API-Key header)

curl -X POST "$PLUSVISA_API_URL/api/v1/orders/PV-4244204A/cancel" \
  -H "X-API-Key: $PLUSVISA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Parameters

NameInTypeNotes
reference *pathstringThe order reference. length 0–16 · e.g. "PV-4244204A"
idempotency-keyheaderstring | nullA unique value (1-255 printable ASCII characters) that makes this write safe to retry: repeating the request with the same key and body returns the original response instead of acting twice. Keys are remembered for 24 hours.

Responses

200 Successful Response

application/json

FieldTypeNotes
reference *stringPlusvisa order reference. Mention it when contacting us.
client_reference *string | nullYour reference, as submitted.
status *PartnerStatusWhere an order is in its lifecycle.
visa_type_id *string
option_id *string
citizenship *string
residency *string
travel_to *string
applicant *ApplicantOut
answers *objectCurrent answers, keyed by field key.
documents *OrderDocument[]
missing *MissingItems | nullWhat is still needed before submit. Present while the order is a draft or action_required, null otherwise.
action_requiredActionRequired | nullWhat to fix. Present only while the status is action_required.
refusal_reasonstring | nullWhy the visa was refused, when Plusvisa gave a reason.
has_resultsbooleantrue once result files such as an e-visa are available to download. default false
created_at *string (date-time)
updated_at *string (date-time)
submitted_at *string (date-time) | null
cancelled_at *string (date-time) | null
decided_at *string (date-time) | nullWhen the visa decision was recorded.

* required

401 Unauthorized

application/json · error envelope

404 Not Found

application/json · error envelope

409 Conflict

application/json · error envelope

422 Unprocessable Entity

application/json · error envelope

503 Service Unavailable

application/json · error envelope

Webhook events

Events we send to your endpoint when something happens on one of your orders. See Webhooks in the guide for signing and retries.

event order.status_changed

Order Status Changed

An order's status changed: submitted, needs your action, moved on in review, was decided, cancelled or expired. data.action_required says what to fix when the new status is action_required.

Signed with your endpoint secret in PV-Signature; see Webhooks in the guide. Answer with any 2xx within 10 seconds.

Sent as POST to your endpoint, signed in PV-Signature.

Payload

application/json

FieldTypeNotes
id *stringUnique event id. Retries carry the same id: dedupe on it.
created_at *string (date-time)When the change happened.
type *"order.status_changed"
data *OrderStatusChangedData

* required

Your response

200 Acknowledged. Any 2xx within 10 seconds will do.

default Anything else, a redirect or a timeout: we retry.

event order.result_available

Order Result Available

A result file, such as the e-visa, is ready to download.

Signed with your endpoint secret in PV-Signature; see Webhooks in the guide. Answer with any 2xx within 10 seconds.

Sent as POST to your endpoint, signed in PV-Signature.

Payload

application/json

FieldTypeNotes
id *stringUnique event id. Retries carry the same id: dedupe on it.
created_at *string (date-time)When the change happened.
type *"order.result_available"
data *ResultAvailableData

* required

Your response

200 Acknowledged. Any 2xx within 10 seconds will do.

default Anything else, a redirect or a timeout: we retry.

event order.message_created

Order Message Created

Plusvisa wrote in the order's message thread. Your own messages are not sent back.

Signed with your endpoint secret in PV-Signature; see Webhooks in the guide. Answer with any 2xx within 10 seconds.

Sent as POST to your endpoint, signed in PV-Signature.

Payload

application/json

FieldTypeNotes
id *stringUnique event id. Retries carry the same id: dedupe on it.
created_at *string (date-time)When the change happened.
type *"order.message_created"
data *MessageCreatedData

* required

Your response

200 Acknowledged. Any 2xx within 10 seconds will do.

default Anything else, a redirect or a timeout: we retry.

event ping

Ping

A test event we send on request, to check your endpoint and signature check.

Signed with your endpoint secret in PV-Signature; see Webhooks in the guide. Answer with any 2xx within 10 seconds.

Sent as POST to your endpoint, signed in PV-Signature.

Payload

application/json

FieldTypeNotes
id *stringUnique event id. Retries carry the same id: dedupe on it.
created_at *string (date-time)When the change happened.
type *"ping"
data *PingData

* required

Your response

200 Acknowledged. Any 2xx within 10 seconds will do.

default Anything else, a redirect or a timeout: we retry.

Errors

Every error uses one envelope, {"error": {"code", "message", "details"}}. Branch on code; message is for humans and may change. 22 codes are documented below, with the endpoints that return them.

codeStatusMessageReturned by
invalid_api_key401The API key is invalid or has been revoked.most endpoints
missing_api_key401Send your API key in the X-API-Key header.most endpoints
order_not_found404No order with this reference.most endpoints
result_not_found404No result file with this id on this order.Download a result file
visa_type_not_found404No visa type with this id.Get a visa type, Get application forms
duplicate_client_reference409You already have an order with this client_reference.Create an order
form_changed409The application form changed after this order was created. Create a new order.Submit an order
idempotency_conflict409This Idempotency-Key was already used with a different request.Create an order, Send a message, Update answers, Upload a document, Submit an order, Cancel an order
idempotency_in_progress409A request with this Idempotency-Key is still being processed. Retry shortly.Create an order, Send a message, Update answers, Upload a document, Submit an order, Cancel an order
not_editable_item409This order is waiting for specific fixes: only the items in `action_required.items` can be changed.Update answers, Upload a document
option_unavailable409This visa option is no longer available. Start a new order.Create an order, Submit an order
order_not_editable409This order can no longer be changed.Send a message, Update answers, Upload a document, Submit an order, Cancel an order
applicant_email_required422Plusvisa contacts your applicants directly, so applicant.email is required.Create an order
invalid_answers422Some answers are not valid.Create an order, Update answers
message_too_long422A message can be at most 4000 characters.Send a message
option_not_found422This option does not belong to the visa type.Create an order
order_incomplete422The order cannot be submitted yet: answers or documents are missing.Submit an order
unknown_country422Country code is not supported for this parameter.Find visa types for a traveller, Get a visa type, Get application forms, Create an order
upload_rejected422This file cannot be accepted.Upload a document
validation_error422Request validation failed.most endpoints
visa_type_unavailable422This visa type is not offered for the given citizenship, residency and destination.Create an order
upstream_unavailable503The service is temporarily unavailable. Please retry later.most endpoints

Schemas

ActionItem

One thing Plusvisa asks you to fix.

FieldTypeNotes
kind *"answer" | "document"answer for a form field, document for an upload.
key *stringThe field key or upload key to fix.
reason *stringWhy it needs fixing, such as blurry, face_not_visible, wrong_document, expired, cropped, glare, missing_page, incorrect_answer or other.
notestring | nullA short explanation from Plusvisa.

* required

ActionRequired

What Plusvisa needs from you while the order is action_required.

FieldTypeNotes
message *stringWhat to do, in Plusvisa's words.
items *ActionItem[]The only answers and documents you may change.
requested_at *string (date-time)

* required

AnswersPatch

FieldTypeNotes
answers *objectAnswers to add or change, keyed by field key. Keys you omit are kept.

* required

ApplicantIn

Contact details of the traveller. All optional.

FieldTypeNotes
emailstring | nullThe traveller's email address.
full_namestring | nullThe traveller's full name.
phonestring | nullThe traveller's phone number.

* required

ApplicantOut

FieldTypeNotes
emailstring | null
full_namestring | null
phonestring | null

* required

Body_upload_document

FieldTypeNotes
key *stringThe upload key from the application form (uploads[].key). length 0–128
file *stringJPG, PNG, HEIC or PDF, at most 15 MB.

* required

ConditionAction

What a condition does to the field or upload it is attached to.

"SHOW" | "REQUIRE" | "ELIGIBLE"

ConditionOperator

How a condition compares the source field's answer with values.

"EQ" | "NEQ" | "IN" | "NOT_IN" | "ANY" | "ALL"

CountryOut

FieldTypeNotes
alpha_3 *stringISO 3166-1 alpha-3, uppercase. Use this code in requests.
alpha_2 *stringISO 3166-1 alpha-2, uppercase.
name *stringEnglish country name.
roles *CountryRole[]Parameters that accept this country: CITIZENSHIP for citizenship, RESIDENCY for residency, DESTINATION for travel_to.

* required

CountryRole

Which lookup parameter accepts a country.

"CITIZENSHIP" | "RESIDENCY" | "DESTINATION"

ErrorBody

FieldTypeNotes
code *stringStable, machine-readable error code. Branch on this.
message *stringHuman-readable explanation. May change; do not parse it.
detailsobject[] | nullStructured context, such as one entry per invalid field.

* required

ErrorResponse

The envelope every error response uses.

FieldTypeNotes
error *ErrorBody

* required

FieldCondition

A rule tying a field or upload to the answer of another field.

FieldTypeNotes
action *ConditionActionSHOW: show it only while the condition holds. REQUIRE: it is required only while the condition holds. ELIGIBLE: the traveller can apply only while it holds.
operator *ConditionOperatorHow the source field's answer is compared with values.
field *stringkey of the field whose answer is checked.
values *any[]The values to compare with.

* required

FieldOption

FieldTypeNotes
code *stringThe value to submit as the answer.
label *stringText to show for this option.

* required

FieldType

The answer format a form field expects. The Forms section lists the format per type.

"TEXT" | "TEXTAREA" | "EMAIL" | "PHONE" | "DATE" | "NUMBER" | "BOOL" | "CHOICE" | "MULTI_CHOICE" | "COUNTRY" | "FILE"

FormField

FieldTypeNotes
key *stringSubmit the answer under this key.
label *stringLabel to show.
help_textstring | nullHint to show with the field.
field_type *FieldTypeThe answer format a form field expects. The Forms section lists the format per type.
is_required *booleanWhether an answer is required while the field is shown.
display *"DROPDOWN" | "BUTTONS"How to show a CHOICE field: a dropdown, or one button per option.
widthinteger | nullLayout hint on a 12-column grid: 12 is full width, 6 is half.
options *FieldOption[]For CHOICE and MULTI_CHOICE, the allowed answers; empty for other types.
conditions *FieldCondition[]Rules that show or require the field depending on other answers.

* required

FormSection

FieldTypeNotes
titlestring | nullSection heading; null for fields outside any section.
stepinteger | nullPage the section belongs to; several sections can share one.
fields *FormField[]

* required

MessageCreatedData

FieldTypeNotes
reference *stringPlusvisa order reference.
client_reference *string | nullYour reference for the order, if any.
message *MessageOutOne message in the order's thread with Plusvisa.

* required

MessageCreatedEvent

FieldTypeNotes
id *stringUnique event id. Retries carry the same id: dedupe on it.
created_at *string (date-time)When the change happened.
type *"order.message_created"
data *MessageCreatedData

* required

MessageIn

FieldTypeNotes
body *stringThe message text, at most 4000 characters once trimmed. length 1–∞

* required

MessageOut

One message in the order's thread with Plusvisa.

FieldTypeNotes
id *stringOpaque message id.
author *"you" | "plusvisa"Who wrote it.
body *string
created_at *string (date-time)

* required

MissingItems

What still prevents the order from being submitted.

Present for a draft or an order that needs action.

FieldTypeNotes
answers *OrderIssue[]Answers that are missing or invalid.
documents *string[]Upload keys that still need an accepted file.

* required

OptionFormOut

FieldTypeNotes
option_id *stringThe option this form belongs to.
form_id *stringStable identifier of the form.
form_title *string
form_version *integerIncreases whenever the form is republished.
sections *FormSection[]Show in the order given. Fields outside any section come last, with a null title.
uploads *UploadOut[]Files the traveller has to provide.

* required

OrderCreate

FieldTypeNotes
citizenship *stringTraveller's citizenship, ISO 3166-1 alpha-3. pattern ^[A-Za-z]{3}$ · e.g. "AZE"
residency *stringCountry the traveller lives in, ISO 3166-1 alpha-3. pattern ^[A-Za-z]{3}$ · e.g. "AZE"
travel_to *stringDestination country, ISO 3166-1 alpha-3. pattern ^[A-Za-z]{3}$ · e.g. "GEO"
visa_type_id *stringA visa type id offered for this traveller. length 1–64
option_id *stringThe id of one of the visa type's options. length 1–64
applicantApplicantIn | nullContact details of the traveller.
answersobjectAnswers to the option's form, keyed by field key, in the format each field_type expects. Answers may be incomplete: send the rest with Update answers before you submit.
client_referencestring | nullYour own reference for the order, echoed back in responses. It must be unique among your orders.

* required

OrderDocument

An uploaded document.

FieldTypeNotes
key *stringThe upload key from the application form.
filename *string
size_bytes *integer
status *"uploading" | "accepted" | "rejected"uploading until the file is stored, then accepted or rejected.
rejected_reasonstring | nullWhy a document was rejected.
replaced_by_plusvisabooleantrue when Plusvisa replaced the file you uploaded. default false

* required

OrderIssue

One problem with an answer.

FieldTypeNotes
key *stringThe field key the problem is about.
code *stringMachine-readable reason, such as required or invalid.
message *stringHuman-readable explanation. May change; do not parse it.

* required

OrderOut

FieldTypeNotes
reference *stringPlusvisa order reference. Mention it when contacting us.
client_reference *string | nullYour reference, as submitted.
status *PartnerStatusWhere an order is in its lifecycle.
visa_type_id *string
option_id *string
citizenship *string
residency *string
travel_to *string
applicant *ApplicantOut
answers *objectCurrent answers, keyed by field key.
documents *OrderDocument[]
missing *MissingItems | nullWhat is still needed before submit. Present while the order is a draft or action_required, null otherwise.
action_requiredActionRequired | nullWhat to fix. Present only while the status is action_required.
refusal_reasonstring | nullWhy the visa was refused, when Plusvisa gave a reason.
has_resultsbooleantrue once result files such as an e-visa are available to download. default false
created_at *string (date-time)
updated_at *string (date-time)
submitted_at *string (date-time) | null
cancelled_at *string (date-time) | null
decided_at *string (date-time) | nullWhen the visa decision was recorded.

* required

OrderPage

FieldTypeNotes
items *OrderOut[]
next_cursor *string | nullPass as cursor to get the next page. null on the last page.

* required

OrderStatusChangedData

FieldTypeNotes
reference *stringPlusvisa order reference.
client_reference *string | nullYour reference for the order, if any.
status *PartnerStatusThe order's new status.
previous_status *PartnerStatus | nullThe status before this change.
action_required *ActionRequired | nullWhat to fix. Present only when the new status is action_required.
refusal_reason *string | nullWhy the visa was refused, when Plusvisa gave a reason.

* required

OrderStatusChangedEvent

FieldTypeNotes
id *stringUnique event id. Retries carry the same id: dedupe on it.
created_at *string (date-time)When the change happened.
type *"order.status_changed"
data *OrderStatusChangedData

* required

PartnerStatus

Where an order is in its lifecycle.

"draft" | "submitted" | "action_required" | "in_review" | "filed" | "approved" | "refused" | "cancelled" | "expired"

PingData

FieldTypeNotes
message *string

* required

PingEvent

FieldTypeNotes
id *stringUnique event id. Retries carry the same id: dedupe on it.
created_at *string (date-time)When the change happened.
type *"ping"
data *PingData

* required

ProcessingTime

FieldTypeNotes
mininteger | nullFastest typical processing time.
maxinteger | nullSlowest typical processing time.
unitstring | nullUnit of min and max, e.g. business_days.

* required

ProvidedBy

Who supplies a document.

"CUSTOMER" | "COMPANY" | "PASSPORT_SCAN"

RequiredDocument

FieldTypeNotes
key *stringStable document identifier.
title *stringDocument name, e.g. Passport (6 months validity).
is_required *booleanFalse when the document is optional.
provided_by *ProvidedByCUSTOMER supplies it, COMPANY prepares it, PASSPORT_SCAN is read from the passport upload.
notestring | nullGuidance for the traveller.

* required

ResultAvailableData

FieldTypeNotes
reference *stringPlusvisa order reference.
client_reference *string | nullYour reference for the order, if any.
result *ResultOutA file Plusvisa attached to a decided order, such as the e-visa.

* required

ResultAvailableEvent

FieldTypeNotes
id *stringUnique event id. Retries carry the same id: dedupe on it.
created_at *string (date-time)When the change happened.
type *"order.result_available"
data *ResultAvailableData

* required

ResultOut

A file Plusvisa attached to a decided order, such as the e-visa.

FieldTypeNotes
id *stringUse it to download the file.
kind *"evisa" | "approval_letter" | "refusal_letter" | "other"
filename *string
size_bytes *integer
ready_at *string (date-time)When the file became available.

* required

UploadOut

FieldTypeNotes
key *stringStable identifier of the requested file.
title *stringWhat to upload, e.g. Photo.
notestring | nullGuidance for the traveller.
is_required *boolean
provided_by *ProvidedByCUSTOMER uploads it, COMPANY prepares it, PASSPORT_SCAN is read from the passport upload.
field_keystring | nullkey of the form field this file answers, if any.
conditions *FieldCondition[]Rules that make the upload apply or required depending on answers.

* required

Validity

FieldTypeNotes
valueinteger | nullHow long the visa is valid, in unit.
unitstring | nullUnit of value, e.g. days.
notestring | nullExtra detail, e.g. from date of issue.

* required

VisaOptionOut

FieldTypeNotes
id *stringPass as option_id when creating an order.
title *stringVariant name, e.g. Single entry.
entry_typestring | nullEntry type, when the visa has one.
validity *Validity
processing *ProcessingTime
documents *RequiredDocument[]Documents this option needs.
notesstring | nullDetails about this option.

* required

VisaStatusInfo

FieldTypeNotes
slug *stringStable identifier, e.g. evisa.
title *stringDisplay name, e.g. eVisa.

* required

VisaTypeInfo

FieldTypeNotes
slug *stringStable category identifier, e.g. tourist.
title *stringDisplay name, e.g. Tourist.

* required

VisaTypeOut

FieldTypeNotes
id *stringPass to Get a visa type and Get application forms, and as visa_type_id when creating an order.
travel_to *stringDestination country, ISO 3166-1 alpha-3.
visa_type *VisaTypeInfo
visa_status *VisaStatusInfo
notesstring | nullDetails about this visa type.
options *VisaOptionOut[]Variants you can order, e.g. single or multiple entry. An order is for one option. Every listed option has an application form.

* required