Payezydevelopers
Sandbox

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

  • Organizationplatform
  • Permissionplatform:customers_add

Parameters

ParameterWhat it does
platformOrgIdpath, uuidrequiredYour platform's organization id. platformOrgId is the platform response's org_id.
customerOrgIdpath, uuidrequiredcustomerOrgId is the customer response's org_id.

Response 200

The documents required at this stage

FieldWhat it does
statusenumrequiredWhere 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 draft pending_review submitted in_review documents_required documents_review approved rejected

documentsOnboardingRequirement[]requiredFiles to upload now. Empty unless status is documents_required.
documents[].kindstringrequiredSend this value as kind when you upload the file.
documents[].display_namestringrequiredName to show for this document.
documents[].person_labelstringWhich person this document is for. Send this as person_label on the upload.
documents[].person_slotstringindividual, 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[].valuestringrequirede.g. PASSPORT, DRIVER_LICENSE
documents[].identity_types[].labelstringrequiredShort name chosen for this record.
documents[].identity_types[].two_sidedbooleanrequiredUpload the back as file_back
documents[].reasonstringThe note staff left when they sent this document back. Empty when staff did not send it back.
documents[].sourceenumrequiredpartner: 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 partner payezy send_back

Errors to handle

CodeWhat it means and what to do
not_found404The 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 getMe / list calls. Payezy returns the same response for "missing" and "not yours" on purpose.

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