Payezydevelopers
Sandbox

API reference / Verification (your own organization)

Upload a verification document

POST/v1/orgs/{orgId}/onboarding/documents

Stores one verification file on the organization's application.

Before you call it

  • Permissiononboarding:manage

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list.

Request body

Send multipart/form-data.

FieldWhat it does
filestring (binary)requiredThe document, or the front of a two-sided ID
file_backstring (binary)Back of a two-sided ID (see DocumentOption.identity_types)
kindstringrequiredNo description in the spec yet.
person_labelstringNo description in the spec yet.
person_slotstringindividual, controller, or beneficial_owners[n]. The file satisfies that person even if their name changes.
identity_document_typestringRequired when the document option lists identity_types

Response 201

Stored

FieldWhat it does
idstring (uuid)requiredNo description in the spec yet.
kindstringrequiredNo description in the spec yet.
person_labelstringNo description in the spec yet.
person_slotstringindividual, controller, or beneficial_owners[n]
file_namestringrequiredNo description in the spec yet.
size_bytesintegerrequiredNo description in the spec yet.
statusenumrequireduploaded: waiting for Payezy review; approved: accepted by Payezy, being sent; returned: Payezy asked for a replacement (see problem)

One of uploaded approved returned staged linked failed

identity_document_typestringNo description in the spec yet.
has_backbooleanNo description in the spec yet.
retainedbooleanStored by Payezy and not sent to the banking partner. Still required before approval.
problemstringWhy a failed or returned document was not accepted and what to do next
created_atstring (date-time)requiredNo description in the spec yet.

Errors to handle

CodeWhat it means and what to do
invalid_document422could not read the upload
unsupported_content409this file type cannot be shown

Every error is a Problem document. Branch on code; quote request_id to support.