Skip to main content
You can attach a customer’s documents, such as the front and back of their ID, as evidence of the KYC you did. Documents are optional, and they never change the customer’s kycStatus.
Documents are personal data, so they are only for accounts with identityPolicy: SHARED. With REFERENCED, the document types list is empty and every upload is refused with 400 CUSTOMER_PII_NOT_ACCEPTED.
Uploading takes two calls: list the document types you can send, then upload one file per call.

List document types

The list depends on your country, and can change as we enable types. Read it rather than hard-coding the values above.

Upload a document

Send the file as multipart/form-data in a field named file. Upload one file per call: for a two-sided ID, call once with side=front and once with side=back.
Uploading again for the same type and side replaces the earlier file.

Response

201 Created:
url is a temporary download link, valid for 5 minutes until expiresAt. Don’t store it: get the customer again for fresh links to all their documents.

Errors