Skip to main content

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_document
  • identity_document_type is required (national_id, driver_license, passport)
  • if identity_document_type is national_id or driver_license, document_side is required (front or back)
  • if identity_document_type is passport, document_side must 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 single identity_document without document_side
  • For national_id or driver_license, upload both front and back
  • income_declaration and address_proof remain optional

Other document types: selfie, qualification_declaration, income_declaration, address_proof (without document_side/identity_document_type).

Request

Path Parameters

    id stringrequired

    Legal representative ID.

Header Parameters

    nonce stringrequired

    The nonce ID is a UUID (v4) used to uniquely identify the request. All requests must have an identifier.

    x-lang string

    Possible values: [pt-BR, en-US]

    Indicates the preferred language. Defaults to Brazilian Portuguese if unspecified.

    x-product-uuid string

    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.

    x-product-target-user-uuid string

    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.

Body

required
    document_type stringrequired

    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.

    identity_document_type string

    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.

    document_side string

    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.

    file binaryrequired

    Document file. Formats: application/pdf, image/jpeg, image/jpg.

Responses

The file upload returned successfully.

Schema
    id stringrequired

    Legal representative document ID.

    file_id objectrequired

    Uploaded file ID.

    file_name objectrequired

    Uploaded file name.

    created_at objectrequired

    Upload creation date.

    identity_document_type string

    Possible values: [national_id, driver_license, passport]

    Identity document type (national_id, driver_license, passport). Present for identity documents.

    type stringrequired

    Possible values: [selfie, identity_document, identity_document_front, identity_document_back, qualification_declaration, income_declaration, address_proof]

    Stored legal representative document type.

Loading...