Extraction of main invoice fields
ABBYY FlexiCapture for Invoices Cloud includes a ready-to-use application designed specifically for invoice processing. This application allows you to recognize and extract all necessary data fields from most documents without any additional adjustments. For a detailed list of fields that are extracted from invoices by default, please refer to the Specification section.
Follow the steps below to process the invoices:
- Get the authorization header using the credentials of one of your applications. For details about getting the authorization header, please refer to the Authentication section.
- Upload a file in a valid input format to the server using the File.Upload method. In the response, you will get the file's identifier and token to be used in all subsequent requests concerning the file.
Request example
Response example
- 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: invoices region, verification type, and the export format for the results.
The response will contain a task identifier which you will need in the next steps.
Request example
Response example
- Processing the task will take some time, so the extracted data will not be available immediately. You can check the task status using the identifier you have received when starting the task. Wait until the status changes to Done. To check the status of the task, use the Task.Get method.
Request example
Response example
- After the status has changed to Done, you can download the output files using their identifiers and tokens (target files information in the response on the previous step). To do this, use the File.Download method. This request can be repeated for each input file in the task request.
Request example
If successful, the server returns a 200 OK HTTP status and file contents.
- After downloading the output data, delete the task to remove all input and output files. To do this, use the Task.Delete method and specify the task identifier.
Request example
If successful, the server returns a 204 OK HTTP status.
If there were errors in the request, the server returns one of the HTTP response codes to indicate the reason for failure. For details, see the Request errors section.
5/18/2023 9:30:10 AM