Testing Document Trust Analysis in Sandbox
Learn how to use Document Analysis in Sandbox
This guide will explain how to test the Document Trust without incurring charges in the Sandbox environment.
In the Sandbox, we do not perform the real processes of fraud detection or extraction, but we will provide you a simulated experience that closely mirrors the production behavior.
When initiating an Document Trust Analysis, you must upload a file with a specific filename using the file parameter.
- This filename determines the status result that will be simulated and the operations that will be simulated.
- The
typefield determines the data that would be extracted.
| Filename | analysis_type[extraction] | analysis_type[fraud_level] | checks | status |
|---|---|---|---|---|
| done.pdf | true | advanced / standard | null | done |
| inconclusive.pdf | true | advanced / standard | null | inconclusive |
| failed.pdf | true | advanced / standard | ✅ | failed |
| failed-expired.pdf | true | advanced / standard | null | failed |
| fraud-high.pdf | true | advanced / standard | null | failed |
| fraud-medium.pdf | true | advanced / standard | null | failed |
| fraud-low.pdf | true | advanced / standard | null | done |
| fraud-trusted.pdf | true | advanced | null | `done |
ℹ️ If you name the test file incorrectly, the API won't recognize it, and the Document Analysis will fail.
Bank account details (bank_account)
bank_account)The simulated document always holds the values below. Send them in checks to get matching checks: any other value does not match, and the analysis fails.
| Field | Simulated value |
|---|---|
| Account holder (natural person) | Jean Dupont |
| IBAN | FR7630006000011234567890189 |
| BIC | AGRIFRPPXXX |
failed.pdf: no IBAN is read on the document, so the analysis fails withDA_2501, whateverchecksyou send.inconclusive.pdf: the analysis isinconclusivewithDA_1100, andchecksis not returned.checks[account_holder][type]=legal_personnever matches, since the simulated holder is a natural person (DA_2006).
Once the Document Trust Analysis has been done, you can retrieve the results through the designated endpoint.
Also, if you have subscribed in the Sandbox to the document_analysis.done event you will also receive a webhook notification.
Updated 11 days ago

