Skip to main content

List Business Documents

The business's documents, each with its type and whether its upload was completed, and the per-file size limit, so your client can check a file before presigning it.

Takes a workspace-scoped API key or a dashboard session. An account-scoped key is refused with 401.

New in v3: in v2, documents were part of GET /api/v2/kyb/banking-verification/business/{accountId}, as verificationFiles.

Authorization:

Every request is signed with your API key: a short-lived JWT, signed with your private key, sent in one header on /v3/* and /api/v2/* alike.

Headers:
Authorization: APIKey {SIGNED_JWT}

How to build and sign the JWT: Authentication.

Endpoint

GET

/v3/customers/{customer_id}/kyb/documents

Path parameters​

ParameterTypeDescription
customer_idstring (cst_…)Required. The business customer.

The whole set is returned at once: this list is not paginated. A customer with no record answers 204 No Content, with no body. An id that names no customer of the workspace answers 404 customer_not_found, not 204.

Response Sample​

{
"documents": [
{
"document_id": "doc_01m24s2q00fqrbpn5wwx8akzr5",
"slot": "certificate_of_incorporation",
"state": "ready",
"size_bytes": 524288,
"content_type": "application/pdf",
"file_name": "certificate-of-incorporation.pdf"
},
{
"document_id": "doc_01m24wgjm0ee9s5ms8j6f1ga3x",
"slot": "proof_of_address",
"state": "pending",
"size_bytes": 182044,
"content_type": "image/png",
"file_name": "utility-bill.png"
}
],
"max_document_bytes": 3145728
}

Response Schema​

FieldTypeDescription
documentsarrayOne entry per document type on file.
documents[].document_idstring (doc_…)The document.
documents[].slotstringIts type. See Upload a Business Document.
documents[].statestringpending: presigned, upload not completed yet. ready: completed, and counts as evidence.
documents[].size_bytesintegerSize in bytes: as declared while pending, as stored once ready.
documents[].content_typestringapplication/pdf, image/jpeg or image/png.
documents[].file_namestringThe uploader's name for the file. Absent for documents uploaded through v2.
max_document_bytesintegerThe largest file accepted, in bytes. Read it here rather than hard-coding it.

Errors​

StatusmessageWhen
400failed to parse requestcustomer_id is not a cst_… TypeID.
401unauthorizedMissing or invalid signature, or an account-scoped key or customer session.
403forbiddenA dashboard member whose role does not allow this. A workspace-scoped key always may.
404customer_not_foundNo such customer in the workspace.

Support and Resources​

If you need assistance or have any questions, our support team is here to help. You can contact our support team at support@blockwyre.com.

Stay Updated​

Stay up-to-date with the latest news, updates, and features from BlockWyre by following us on social media:

We are excited to have you on board and look forward to seeing how you leverage BlockWyre's powerful tools to enhance your financial operations. Happy integrating!