1
Get the authorization header
Get the authorization header using the credentials of one of your applications. For details, see the Authentication section. The examples below 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. In the response, you get the file’s identifier and token, which are used in all subsequent requests concerning the file.The response contains the uploaded file’s metadata:
3
Start a processing task
Start a processing task to begin data extraction using the Task.Run method. You can specify multiple files in this request. The request may contain the following optional parameters: invoice region, verification type, and the export format for the results. The response contains a task identifier, which you need in the next steps.The response describes the newly created task:
4
Check the task status
Processing the task takes some time, so the extracted data is not available immediately. Check the task status using the identifier you received when starting the task, with the Task.Get method. Wait until the status changes to When the task is complete, the response includes the
Done.target files to download:5
Download the output files
After the status changes to If successful, the server returns a 200 OK HTTP status and the file contents.
Done, download the output files using their identifiers and tokens (the target file information in the response from the previous step), with the File.Download method. Repeat this request for each input file in the task request.6
Delete the task
After downloading the output data, delete the task to remove all input and output files, using the Task.Delete method with the task identifier.If successful, the server returns a
204 No Content HTTP status.