Process invoices
1
Get the authorization header
Get the authorization header using the credentials of one of your applications. For more information, see Authenticate requests to the ABBYY FlexiCapture for Invoices Cloud API. The examples on this page use the sample header
Basic QWxhZGRpbjpPcGVuU2VzYW1l.2
Upload a file
Upload a file in a valid input format to the server using the File.Upload method. The response contains the file identifier and token. Use them in all subsequent requests for the file.The response contains the metadata of the uploaded file.
Upload a file
Response
3
Start a processing task
Start a processing task to begin data extraction with the Task.Run method. You can specify multiple files in this request. In the The response describes the new task.
properties object, specify the invoice region, the verification type, and the export format for the results. The response contains a task identifier, which you need in the next steps.Start a processing task
Response
4
Check the task status
Processing the task takes some time, so the extracted data is not available immediately. Check the task status with the task identifier that you received when you started the task. Use the Task.Get method. Wait until the status changes to When the task is complete, the response includes the
Done.Check the task status
target files to download.Response
5
Download the output files
After the status changes to If successful, the server returns a
Done, download the output files with their identifiers and tokens, which are the target file information in the response from the previous step. Use the File.Download method. Repeat this request for each input file in the task request.Download the output files
200 OK status and the file contents.6
Delete the task
After you download the output data, delete the task to remove all input and output files. Use the Task.Delete method with the task identifier.If successful, the server returns a
Delete the task
204 No Content status.