- Get the authorization header.
- Upload a file to the server.
- Start a document processing task to begin data extraction using the Task.Run method. Specify the verification_type parameter to be ‘Troubleshooting’ or ‘UserVerification’.
Request example
Request example
curl -X POST —header “Content-Type: application/json” —header “Accept: application/json” —header “Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l” -d ”{“properties”: {“region”: “US”,“export_format”: “Xls”,“verification_type”: “UserVerification”,},“files”: [{“id”: “5eeb762149c6470fdc65a84c”,“token”: “4B5A1A00E7A82C2AF31E20CADE7284DDA43DED30”}]}” “https://api-eu.flexicapture.com/v2/task/capture/invoices”
Response example
Response example
{“id”: “5eeb7bf728613d1e04a70782”,“number”: “1126563”,“batch_id”: 0,“type”: “ic”,“is_realtime_enabled”: false,“processing_priority”: “Normal”,“is_demo”: false,“properties”: {“region”: “US”,“export_format”: “Xls”,“verification_type”: “UserVerification”},“account”: “5dae591d3c66a51ae8be9896”,“email”: “user@abbyy.com”,“application”: “5dae591e91375010bcd78362”,“created”: “2020-02-02T15:36:39.441Z”,“progress”: 0,“status”: “Submitted”,“is_deleted”: false,“is_billed”: false,“documents”: [{“files”: {“source”: {“id”: “5eeb762149c6470fdc65a84c”,“token”: “4B5A1A00E7A82C2AF31E20CADE7284DDA43DED30”,“name”: “US_1.png”}},“data”: {},“is_moved”: false}],“is_extra_error”: false}
- Track the task status using the method Task.Get. For details, please refer to the Extraction of main invoices fields section.
Response example
Response example
{“id”: “5eeb7bf728613d1e04a70782”,“number”: “1126563”,“verification_id”: “c6115b219dc609091e10e7679f064ef7”,“batch_id”: 2648837,“type”: “ic”,“is_realtime_enabled”: false,“processing_priority”: “Normal”,“is_demo”: false,“properties”: {“region”: “US”,“export_format”: “Xls”,“verification_type”: “UserVerification”},“account”: “5dae591d3c66a51ae8be9896”,“email”: “user@abbyy.com”,“application”: “5dae591e91375010bcd78362”,“created”: “2020-02-02T15:36:39.441Z”,“started”: “2020-02-02T15:36:39.441Z”,“action_required”: “2020-02-02T15:40:40.441Z”,“billed”: “2020-02-02T15:36:39.441Z”,“progress”: 60,“status”: “WaitForAction”,“is_deleted”: false,“is_billed”: true,“documents_count”: 1,“pages_count”: 1,“documents”: [{“files”: {“source”: {“id”: “5eeb762149c6470fdc65a84c”,“token”: “4B5A1A00E7A82C2AF31E20CADE7284DDA43DED30”,“name”: “US_1.png”},“verification_layer_page_0”: {“id”: “5eec6f846acf141414114b78”,“token”: “5BD40F65ABF4CEA71C97E9698AC62283EA747EC8”,“name”: “verification_layer_page_2.xml”}},“data”: {“region”: “us”,“export_format”: “xls”,“verification_type”: “userverification”,“vendor_id”: “1”,“vendor_name”: “AA APPAREL”,“total”: “20208”,“currency”: “USD”},“is_moved”: false}],“is_extra_error”: false}
- Create a verification URL in the following format:
- Open the verification URL in a browser.
- Track the task status. After the task status has changed to Done, you can download the output files and delete the task.
