Skip to main content
Upload Document
Envie um documento de identidade para um cliente ou representante empresarial como parte do processo de verificação KYC ou KYB. Os documentos são submetidos como dados de formulário multipart. Os formatos de arquivo aceitos são PDF, JPEG e PNG, validados pela assinatura do arquivo e não pela extensão. O tamanho máximo é de 10 MB por arquivo, ou de 8 MB para documentos de identidade (passport, drivers, id_card, residence_permit, br_digital_drivers, br_digital_id). Os campos target e documentType determinam como o SpherePay roteará e processará o envio — clientes individuais, clientes empresariais e representantes empresariais possuem seus próprios conjuntos de tipos de documentos aceitos.
Documentos para clientes individuais são enviados com target: "customer". Documentos para representantes empresariais (UBOs) usam target: "business_representative" e o targetId deve ser o ID do representante, não o do cliente.

Autorizações

Authorization
string
header
obrigatório

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

Corpo

multipart/form-data

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

country
string
obrigatório

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

Exemplo:

"USA"

documentType
enum<string>
obrigatório

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

Opções disponíveis:
passport,
drivers,
id_card,
residence_permit,
br_digital_drivers,
br_digital_id
Exemplo:

"passport"

file
file
obrigatório

The document file to upload. Accepted formats: PDF, JPEG, PNG. Maximum file size: 8MB. Minimum file size: 10KB.

target
enum<string>
obrigatório

The target entity for which the document is being uploaded

Opções disponíveis:
customer
Exemplo:

"customer"

targetId
string
obrigatório

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

Minimum string length: 1
Exemplo:

"customer_66c4168d418a410eae282b83883bdc39"

description
string

Optional description or notes about the document

Exemplo:

"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.

Opções disponíveis:
front,
back
Exemplo:

"front"

Resposta

Response for an ID document uploaded for an individual customer.

country
string
obrigatório

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

Exemplo:

"USA"

createdAt
string
obrigatório

The date and time the document was created

Exemplo:

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

description
string
obrigatório

The description of the document

Exemplo:

"Passport photo page"

documentType
enum<string>
obrigatório

The type of the document

Opções disponíveis:
drivers,
passport,
id_card,
residence_permit,
br_digital_drivers,
br_digital_id
Exemplo:

"passport"

fileName
string
obrigatório

The name of the document file

Exemplo:

"passport_front_20250101.pdf"

fileSize
number
obrigatório

The size of the document in bytes

Exemplo:

2048576

id
string
obrigatório

The unique identifier of the document

Exemplo:

"documentFile_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"

mimeType
string
obrigatório

The MIME type of the document file

Exemplo:

"application/pdf"

side
enum<string>
obrigatório

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

Opções disponíveis:
front,
back
Exemplo:

"front"

target
enum<string>
obrigatório

The target entity for which the document is being uploaded

Opções disponíveis:
customer
Exemplo:

"customer"

targetId
string
obrigatório

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

Exemplo:

"customer_66c4168d418a410eae282b83883bdc39"

Última modificação em 19 de agosto de 2026