Visa APIv1

Orders

The order lifecycle, what is missing, answers, uploads and applicant emails.

An order is one visa application. You create it as a draft, fill in answers and documents, submit it, and follow it to a decision.

Happy path
We need a fix
Draft closes
draftcancelledor, after 30 idle days,expired
Order statuses. New statuses may be added: handle an unknown one gracefully.

Statuses

  • draft: the order exists and can still change. Add answers and documents, then submit or cancel it. A draft you do not touch for 30 days becomes expired, and its uploaded files are deleted. Any change to the draft, such as new answers or an upload, restarts the 30 days.
  • submitted: you submitted it; it can no longer be changed or cancelled.
  • in_review, filed: we are processing the application.
  • action_required: we need you to fix something. action_required.message says what and action_required.items lists the answers and documents you may change. See Action required.
  • approved, refused: the decision. decided_at records when, and a refusal may carry refusal_reason. See Results.
  • cancelled, expired: the order is closed.

What missing means

While an order is a draft, missing.answers lists answers that are absent or invalid (each with the field key, a code and a message), and missing.documents lists upload keys that still need an accepted file. Submit succeeds once both are empty.

missing is present for a draft and for an order in action_required, and null otherwise and in order lists; fetch the order to see it.

Answers

Answers are keyed by each field's key from the form. Send them at creation, in later PATCH /api/v1/orders/{reference}/answers calls, or both. A key you leave out is kept, and null clears an answer. Sensitive answers such as passport numbers are returned only while the order is a draft.

curl -X PATCH "$PLUSVISA_API_URL/api/v1/orders/PV-4Z8M2X64/answers" \
  -H "X-API-Key: $PLUSVISA_API_KEY" -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"answers": {"surname": "Aliyev", "date_of_birth": "1990-04-12"}}'

Uploads

Upload one file per request: POST /api/v1/orders/{reference}/documents as multipart/form-data with the upload key and the file.

  • Accepted types are JPG, PNG, HEIC and PDF, up to 15 MB.
  • We check the file before answering; an unusable file returns upload_rejected (for example when an image is too small or a PDF cannot be opened).
  • Uploading again for the same key replaces the previous accepted file.
  • A document that Plusvisa replaced shows replaced_by_plusvisa: true.
curl -X POST "$PLUSVISA_API_URL/api/v1/orders/PV-4Z8M2X64/documents" \
  -H "X-API-Key: $PLUSVISA_API_KEY" \
  -F key=passport -F [email protected]

client_reference

Your own identifier for the order, such as your booking id. It is echoed back in every response and must be unique among your orders; reusing one returns duplicate_client_reference with the reference of the existing order.

If the form changes

If the application form is republished while an order is a draft, submit returns form_changed. Create a new order for the same option.

Following orders

  • GET /api/v1/orders/{reference} returns the current state.
  • GET /api/v1/orders?updated_since=... lists orders that changed since a time; filter by status, and page with cursor and limit.
  • Webhooks push status changes, result files and messages so you do not have to poll.

Cancelling

POST /api/v1/orders/{reference}/cancel cancels a draft. Once submitted, an order cannot be cancelled; if you no longer need it, tell us in a message.

Applicant communication

By default Plusvisa never contacts your applicants. You follow each order through the API and decide what to tell the traveller.

Optionally, we can email applicants directly instead, for example to confirm that their application was received. In that case applicant.email is required when you create an order; without it the request is refused with applicant_email_required, before anything is created. The setting applies to an order from the moment it is created, so changing it later does not affect orders you have already started. Ask your contact if you would like us to switch.