Subir Documentos de Identidad KYC y KYB
Upload a document for a customer.
target y documentType determinan cómo SpherePay enruta y procesa la carga — los clientes individuales, los clientes empresariales y los representantes empresariales tienen cada uno su propio conjunto de tipos de documentos aceptados.
target: "customer". Los documentos para representantes empresariales (UBOs) usan target: "business_representative" y el targetId debe ser el ID del representante, no el del cliente.Autorizaciones
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Cuerpo
- 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"
Respuesta
- 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"