Upload KYC and KYB Identity Documents
Upload a document for a customer.
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.
target: "customer". Documents for business representatives (UBOs) use target: "business_representative" and the targetId must be the representative’s ID, not the customer’s.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
- ID Document
- Other Document
- Business
- ID Document
- Other Document
Upload identity documents for individual customers. Requires country of issuance and optionally the document side (front/back).
The unique identifier of the target entity for which the document is being uploaded
1"customer_66c4168d418a410eae282b83883bdc39"
The document file to upload. Accepted formats: PDF, JPEG, PNG, HEIC, TIFF. Maximum file size: 15MB
The ISO3166-1 Alpha-3 country code associated with the document (e.g., USA, GBR, FRA). See Country Codes.
"USA"
The target entity for which the document is being uploaded
customer "customer"
ID documents for individual customers. See Document Guideline for requirements.
drivers, id_card, passport, residence_permit "passport"
Optional description or notes about the document
"Front side of driver's license"
The side of the document if it has multiple sides (e.g., front, back). Leave undefined for single-sided documents.
front, back "front"
Response
- ID Document
- Other Document
- Business Customer Document
- ID Document
- Other Document
Response for an ID document uploaded for an individual customer.
The unique identifier of the target entity for which the document is being uploaded
"customer_66c4168d418a410eae282b83883bdc39"
The date and time the document was created
"2025-12-31T10:30:00.000Z"
The name of the document file
"passport_front_20250101.pdf"
The size of the document in bytes
2048576
The MIME type of the document file
"application/pdf"
The target entity for which the document is being uploaded
customer "customer"
The type of the document
drivers, id_card, passport, residence_permit "passport"
The side of the document if it has multiple sides (e.g., front, back). Leave undefined for single-sided documents.
front, back "front"
The description of the document
"Passport photo page"
The ISO3166-1 Alpha-3 country code associated with the document (e.g., USA, GBR, FRA)
"USA"