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 | null | done |
| inconclusive.pdf | true | advanced | null | inconclusive |
| failed.pdf | true | advanced | ✅ | failed |
| failed-expired.pdf | true | advanced | null | failed |
| fraud-high.pdf | true | advanced | null | failed |
| fraud-medium.pdf | true | advanced | null | failed |
| fraud-low.pdf | true | advanced | 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.
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.