API reference / Platform / Verification
Get a customer's document requirements
GET/v1/platforms/{platformOrgId}/customers/{customerOrgId}/onboarding/requirements
Documents the linked customer must upload while verification is documents_required. The list includes what the banking partner asked for, the files Payezy collects, and a file staff sent back (reason is the note from that send-back). Any other status returns an empty documents list. Needs platform:customers_add. Another platform's customer is not_found.
When to use it
When the customer's verification status is documents_required, to see which files to upload before you send them for review.
Before you call it
- Organization
platform - Permission
platform:customers_add
Parameters
| Parameter | What it does |
|---|---|
platformOrgIdpath, uuidrequired | Your platform's organization id. platformOrgId is the platform response's org_id. |
customerOrgIdpath, uuidrequired | customerOrgId is the customer response's org_id. |
Response 200
The documents required at this stage
| Field | What it does |
|---|---|
statusenumrequired | Where KYC or KYB is. documents is filled only when this is documents_required. One of: draft, pending_review, submitted, in_review, documents_required, documents_review, approved, rejected. One of |
documentsOnboardingRequirement[]required | Files to upload now. Empty unless status is documents_required. |
documents[].kindstringrequired | Send this value as kind when you upload the file. |
documents[].display_namestringrequired | Name to show for this document. |
documents[].person_labelstring | Which person this document is for. Send this as person_label on the upload. |
documents[].person_slotstring | individual, controller, or beneficial_owners[n]. Send this as person_slot on the upload. |
documents[].identity_typesIdentityType[] | For a photo ID, the ID types accepted. Send one as identity_document_type. |
documents[].identity_types[].valuestringrequired | e.g. PASSPORT, DRIVER_LICENSE |
documents[].identity_types[].labelstringrequired | Short name chosen for this record. |
documents[].identity_types[].two_sidedbooleanrequired | Upload the back as file_back |
documents[].reasonstring | The note staff left when they sent this document back. Empty when staff did not send it back. |
documents[].sourceenumrequired | partner: the banking partner asked for it. payezy: Payezy collects it. send_back: staff asked for a replacement that was not already on those lists. One of: partner, payezy, send_back. One of |
Errors to handle
| Code | What it means and what to do |
|---|---|
not_found404 | The resource does not exist, or you are not allowed to know it exists - another organization, another platform's customer, or a production-only route in the sandbox. Check the ids came from your own |
Every error is a Problem document. Branch on code; quote request_id to support.