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)
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.
The product ID is a UUID (v4) used to identify the Z.ro product configuration.
The product target user ID is a UUID (v4) used to identify what user account this request must be executed. Require: x-product-uuid.
- multipart/form-data
Body
required
- MOD1
- MOD2
- MOD3
Possible values: [identity_document]
Possible values: [passport]
Document file. Formats: application/pdf, image/jpeg, image/jpg.
Possible values: [identity_document]
Possible values: [national_id, driver_license]
Possible values: [front, back]
Document file. Formats: application/pdf, image/jpeg, image/jpg.
Possible values: [selfie, qualification_declaration, income_declaration, address_proof]
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.