Upload Onboarding Document File by ID
POST/v1/users/onboardings/:id/documents
Upload the onboarding document file (max size: 20 MB). There are two ways to complete onboarding: 1) Provide selfie, document_front, document_back and document_file_type, or 2) Provide only selfie and document_id. The process is finished once all required documents are submitted based on the chosen method.
Request
Path Parameters
Onboarding 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: [rg, cnh]
Document type specified for document_front and document_back. Required when not using document_id. Possible values: rg,cnh.
Document ID for digital identity validation. When provided, only selfie is required and document_front/document_back are not needed.
Front side of the document. Required when document_id is not provided.
Back side of the document. Required when document_id is not provided.
User selfie. Always required.
Proof of address document. Optional.
Responses
- 200
- 400
- 401
- 422
The file upload returned successfully.
If any required params are missing or has invalid format or type.
User authentication failed.
If any required params are missing or has invalid format or type.