Once you've created a submission request, you can then upload relevant documents prior to running the verification.You must specify the document type. Refer to the document types accepted for your country.
For a better user experience, this endpoint will attempt to a basic validation of the document which can provide immediate feedback to the user. If we are unable to validate the document within the timeout window, you'll receive a webhook with the validation results.Every document is validated for legibility and completeness, as well as validating that it is of the expected type.
During normal validations, the name on the document will be matched against the business name in the submission. But there may be cases where you would like to validate the name on the document against a different name. You can pass in a custom name using the validation_inputs parameter.
Note: Currently only name-matching validations support custom data. Name-matching is only supported for mx_address_proof, mx_bank_statement, and mx_ine document types.
🟢201Document was successfully uploaded and validated.
Basic information from the document is returned here for you to do additional validation checks.
application/json
Bodyapplication/json
Example
{"id":"string","status":"pending","validation_status":"incomplete","type":"mx_acta_constitutiva","file":{"name":"string","byte_size":0},"source":"user","data":{},"validation_errors":[{"type":"warn","error":"illegible","error_message":"Document is blank","display_message":"Document is not the correct type. Please upload the correct document."}],"uploaded_at":"2019-08-24T14:15:22.123Z","external_id":"string","document_name":"string"}
🟢202Document was successfully uploaded, but it has not been validated within the configured timeout window. Once the document is validated, you will receive a webhook with the result.
🟠400Document was uploaded successfully but was invalid.