Skip to main content
Upload Document
Sube un documento de identidad para un cliente o representante empresarial como parte del proceso de verificación KYC o KYB. Los documentos se envían como datos de formulario multipart. Los formatos de archivo aceptados son PDF, JPEG y PNG, validados por la firma del archivo y no por la extensión. El tamaño máximo es de 10 MB por archivo, o de 8 MB para documentos de identidad (passport, drivers, id_card, residence_permit, br_digital_drivers, br_digital_id). Los campos 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.
Los documentos para clientes individuales se suben con 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

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Cuerpo

multipart/form-data

Upload identity documents for individual customers. Requires country of issuance and optionally the document side (front/back).

targetId
string
requerido

The unique identifier of the target entity for which the document is being uploaded

Minimum string length: 1
Ejemplo:

"customer_66c4168d418a410eae282b83883bdc39"

file
file
requerido

The document file to upload. Accepted formats: PDF, JPEG, PNG. Maximum file size: 10MB (8MB for passport, id_card, drivers, residence_permit, br_digital_drivers, and br_digital_id documents)

country
string
requerido

The ISO3166-1 Alpha-3 country code associated with the document (e.g., USA, GBR, FRA). See Country Codes.

Ejemplo:

"USA"

target
enum<string>
requerido

The target entity for which the document is being uploaded

Opciones disponibles:
customer
Ejemplo:

"customer"

documentType
enum<string>
requerido

ID documents for individual customers. See Document Guideline for requirements.

Opciones disponibles:
passport,
drivers,
id_card,
residence_permit,
br_digital_drivers,
br_digital_id
Ejemplo:

"passport"

description
string

Optional description or notes about the document

Ejemplo:

"Front side of driver's license"

side
enum<string>

The side of the document if it has multiple sides (e.g., front, back). Leave undefined for single-sided documents. Not applicable to br_digital_drivers / br_digital_id — these are single-sided; omit side.

Opciones disponibles:
front,
back
Ejemplo:

"front"

Respuesta

Response for an ID document uploaded for an individual customer.

id
string
requerido

The unique identifier of the document

Ejemplo:

"documentFile_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"

targetId
string
requerido

The unique identifier of the target entity for which the document is being uploaded

Ejemplo:

"customer_66c4168d418a410eae282b83883bdc39"

createdAt
string
requerido

The date and time the document was created

Ejemplo:

"2025-12-31T10:30:00.000Z"

fileName
string
requerido

The name of the document file

Ejemplo:

"passport_front_20250101.pdf"

fileSize
number
requerido

The size of the document in bytes

Ejemplo:

2048576

mimeType
string
requerido

The MIME type of the document file

Ejemplo:

"application/pdf"

description
string
requerido

The description of the document

Ejemplo:

"Passport photo page"

target
enum<string>
requerido

The target entity for which the document is being uploaded

Opciones disponibles:
customer
Ejemplo:

"customer"

documentType
enum<string>
requerido

The type of the document

Opciones disponibles:
drivers,
passport,
id_card,
residence_permit,
br_digital_drivers,
br_digital_id
Ejemplo:

"passport"

country
string
requerido

The ISO3166-1 Alpha-3 country code associated with the document (e.g., USA, GBR, FRA)

Ejemplo:

"USA"

side
enum<string>
requerido

The side of the document if it has multiple sides (e.g., front, back). Leave undefined for single-sided documents.

Opciones disponibles:
front,
back
Ejemplo:

"front"

Última modificación el 19 de agosto de 2026