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
- Permission
onboarding:manage
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The 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.
| Field | What it does |
|---|---|
filestring (binary)required | The document, or the front of a two-sided ID |
file_backstring (binary) | Back of a two-sided ID (see DocumentOption.identity_types) |
kindstringrequired | No description in the spec yet. |
person_labelstring | No description in the spec yet. |
person_slotstring | individual, controller, or beneficial_owners[n]. The file satisfies that person even if their name changes. |
identity_document_typestring | Required when the document option lists identity_types |
Response 201
Stored
| Field | What it does |
|---|---|
idstring (uuid)required | No description in the spec yet. |
kindstringrequired | No description in the spec yet. |
person_labelstring | No description in the spec yet. |
person_slotstring | individual, controller, or beneficial_owners[n] |
file_namestringrequired | No description in the spec yet. |
size_bytesintegerrequired | No description in the spec yet. |
statusenumrequired | uploaded: waiting for Payezy review; approved: accepted by Payezy, being sent; returned: Payezy asked for a replacement (see problem) One of |
identity_document_typestring | No description in the spec yet. |
has_backboolean | No description in the spec yet. |
retainedboolean | Stored by Payezy and not sent to the banking partner. Still required before approval. |
problemstring | Why a failed or returned document was not accepted and what to do next |
created_atstring (date-time)required | No description in the spec yet. |
Errors to handle
| Code | What it means and what to do |
|---|---|
invalid_document422 | could not read the upload |
unsupported_content409 | this file type cannot be shown |
Every error is a Problem document. Branch on code; quote request_id to support.