Upload Legal Representative Document (v2)
POST/v2/users/legal-representatives/:id/documents
Uploads one legal representative document per request (max size: 25 MB).
Integration model: use document_type + optional document_side as metadata and send a single binary file.
Identity documents:
document_type = identity_documentidentity_document_typeis required (national_id,driver_license,passport)- if
identity_document_typeisnational_idordriver_license,document_sideis required (frontorback) - if
identity_document_typeispassport,document_sidemust not be sent (internally mapped to FRONT)
Finalization rules: each active legal representative must have selfie, qualification_declaration, and the identity document family.
- For
passport, upload a singleidentity_documentwithoutdocument_side - For
national_idordriver_license, upload bothfrontandback income_declarationandaddress_proofremain optional
Other document types: selfie, qualification_declaration, income_declaration, address_proof (without document_side/identity_document_type).
Request
Path Parameters
Legal representative ID.
Header Parameters
The nonce ID is a UUID (v4) used to uniquely identify the request. All requests must have an identifier.
Possible values: [pt-BR, en-US]
Indicates the preferred language. Defaults to Brazilian Portuguese if unspecified.
UUID (v4) of the product that the request should use. Send it explicitly when the authenticated user has more than one product or when the integration must select a specific product. If omitted and the endpoint does not require it, the API uses the authenticated user's default product.
UUID (v4) of the user on whose behalf the request should run within the selected product. If omitted, the request runs as the authenticated user. Requires x-product-uuid.
- multipart/form-data
Body
required
Possible values: [selfie, identity_document, qualification_declaration, income_declaration, address_proof]
Document type to upload. When using identity_document, send identity_document_type and follow the document_side rules described below.
Possible values: [national_id, driver_license, passport]
Required only when document_type is identity_document. Use passport without document_side. Use national_id or driver_license with document_side.
Possible values: [front, back]
Required when document_type is identity_document and identity_document_type is national_id or driver_license. Do not send for passport or non-identity documents.
Document file. Formats: application/pdf, image/jpeg, image/jpg.
Responses
- 201
- 400
- 401
- 403
- 422
The file upload returned successfully.
- application/json
- Schema
- Example (from schema)
Schema
Legal representative document ID.
Uploaded file ID.
Uploaded file name.
Upload creation date.
Possible values: [national_id, driver_license, passport]
Identity document type (national_id, driver_license, passport). Present for identity documents.
Possible values: [selfie, identity_document, identity_document_front, identity_document_back, qualification_declaration, income_declaration, address_proof]
Stored legal representative document type.
{
"id": "1b2c3d4e-1234-5678-9abc-def012345678",
"file_id": "8fc58500-b12e-49d7-892c-dfd704b94c2d",
"file_name": "identity_document_front.jpg",
"created_at": "2024-01-15T10:30:00.000Z",
"identity_document_type": "national_id",
"type": "identity_document_front"
}
If any required params are missing or has invalid format or type.
User authentication failed.
If the authenticated user does not have permission.
If any required params are missing or has invalid format or type.