Upload an identity document for a customer or business representative as part of the KYC or KYB verification process. Documents are submitted as multipart form data. Accepted file formats are PDF, JPEG, PNG, HEIC, and TIFF, with a maximum file size of 15 MB. TheDocumentation Index
Fetch the complete documentation index at: https://docs.spherepay.co/llms.txt
Use this file to discover all available pages before exploring further.
target and documentType fields determine how SpherePay routes and processes the upload — individual customers, business customers, and business representatives each have their own set of accepted document types.
Documents for individual customers are uploaded with
target: "customer". Documents for business representatives (UBOs) use target: "business_representative" and the targetId must be the representative’s ID, not the customer’s.Endpoint
Authentication
All requests must include a Bearer token in theAuthorization header.
Request parameters
This endpoint acceptsmultipart/form-data.
The unique identifier of the entity the document belongs to. This is the customer ID for individual and business customers, or the business representative ID for UBO documents.
The type of entity the document is being uploaded for.Accepted values:
"customer" | "business_representative"The classification of document being uploaded. Accepted values depend on
target:- Individual customer:
"drivers"|"id_card"|"passport"|"residence_permit"|"liveness_report" - Business customer:
"incorporation_cert"|"shareholder_registry"|"proof_of_address" - Business representative:
"drivers"|"id_card"|"passport"|"residence_permit"|"proof_of_address"|"liveness_report"
The document file to upload. Accepted formats: PDF, JPEG, PNG, HEIC, TIFF. Maximum file size: 15 MB.
The ISO 3166-1 Alpha-3 country code of the issuing country (e.g.,
"USA", "GBR", "FRA"). Required for government-issued ID documents (drivers, id_card, passport, residence_permit).The side of the document, for multi-sided documents. Leave unset for single-sided documents (e.g., passports).Accepted values:
"front" | "back"Optional free-text description or notes about the document.
Response fields
The ID of the entity the document was uploaded for.
The type of entity (
"customer" or "business_representative").The classification of the uploaded document.
The ISO 3166-1 Alpha-3 country code of the issuing country, if applicable.
The side of the document (
"front" or "back"), if applicable.The description provided at upload time, if any.
The stored file name of the uploaded document.
The size of the uploaded file in bytes.
The MIME type of the uploaded file (e.g.,
"application/pdf").ISO 8601 timestamp of when the document was uploaded.

