Skip to main content
When you upgrade from version 1 to version 2 of the ABBYY FlexiCapture for Invoices Cloud REST API, you need to make some changes to your code.

Essential changes in version 2

The following sections list the version 1 API methods by category. Each entry shows the version 1 and version 2 URLs and the changes to the request and response.

File methods

POST /file

Version 1 and version 2 URLs
  • Removed the email query parameter. The email address of the account is used instead.
  • Added to the response: application (application ID) and expiring (the file expiration date).
  • Removed from the response: the keys concerning file validation and deletion (validated, is_validated, deleted, is_deleted), the error message (error), and the number of pages (pages_count).

GET /file/{id}/{token}/info

Version 1 and version 2 URLs
  • You can no longer get metadata for deleted files. The method now returns a 404 response.
  • Added to the response: application (application ID) and expiring (the file expiration date).
  • Removed from the response: the keys concerning file validation and deletion (validated, is_validated, deleted, is_deleted), the error message (error), and the number of pages (pages_count).

GET /file/{id}/{token}

Version 1 and version 2 URLs

DELETE /file/{id}/{token}

Version 1 and version 2 URLs

Document capture tasks

POST /task/capture/documents

Version 1 and version 2 URLs
The request changes as follows.
  • The request body no longer contains the email and label keys.
  • The region, export_format, and verification_type keys are moved to the properties dictionary.
The response changes as follows.
  • Added keys: batch_id, is_realtime_enabled, processing_priority, is_demo, account, application, is_extra_error, documents > data, documents > is_moved, documents > traininglayout_fileid.
  • Removed keys: label, lead_time, started, delivered, deleted, wait_for_action, is_test, region, export_format, verification_type, business_unit, properties > export_format, properties > verification_type.
  • The services array was removed. The files key moved from the services array to the documents array.
  • number is now a string instead of an integer.
  • progress is now a floating-point number instead of an integer.

Invoice capture tasks

POST /task/capture/invoices

Version 1 and version 2 URLs
The request changes as follows.
  • The request body no longer contains the business_unit, email, and label keys.
  • The region, export_format, and verification_type keys are moved to the properties dictionary.
The response changes as follows.
  • Added keys: batch_id, is_realtime_enabled, processing_priority, is_demo, account, application, is_extra_error, documents > data, documents > is_moved, documents > traininglayout_fileid.
  • Removed keys: label, lead_time, started, delivered, deleted, wait_for_action, is_test, region, export_format, verification_type, business_unit, properties > export_format, properties > verification_type.
  • The services array was removed. The files key moved from the services array to the documents array.
  • number is now a string instead of an integer.
  • progress is now a floating-point number instead of an integer.

GET /task/{id}

Version 1 and version 2 URLs
The response is now organized in the same way as the response of the task creation method.
  • Added keys, similar to the task creation method: batch_id, is_realtime_enabled, processing_priority, is_demo, account, application, documents_count, pages_count, is_extra_error, documents > data, documents > is_moved, documents > traininglayout_fileid.
  • Added more keys relating to the extracted data (documents > data > { region, export_format, verification_type, vendor_name, invoice_date, total, currency }) and to task billing (billed, is_billed).
  • Removed keys: label, lead_time, deleted, wait_for_action, is_test, region, export_format, verification_type, business_unit.
  • The services array was removed. The files key moved from the services array to the documents array.
  • number is now a string instead of an integer.
  • progress is now a floating-point number instead of an integer.

DELETE /task/{id}

Version 1 and version 2 URLs

Dataset methods

POST /dataset/businessunits

Version 1 and version 2 URLs
  • In both the request and the response, the following keys now contain arrays with variants: name, street, city, state, zip, vat.

PUT /dataset/businessunits

Version 1 and version 2 URLs
  • In both the request and the response, the following keys now contain arrays with variants: name, street, city, state, zip, vat.

GET /dataset/businessunits/{region}

Version 1 and version 2 URLs
  • You can now use the optional externalId, skip, and take query parameters to get the data of one business unit.
  • In both the request and the response, the following keys now contain arrays with variants: name, street, city, state, zip, vat.

DELETE /dataset/businessunits/{region}

Version 1 and version 2 URLs

DELETE /dataset/businessunit/{region}/{externalId}

Version 1 and version 2 URLs

POST /dataset/vendors

Version 1 and version 2 URLs
  • In both the request and the response, the following keys now contain arrays with variants: name, street, city, state, zip, vat, national_vat, iban, bank_account, bank_code, gl_code.

PUT /dataset/vendors

Version 1 and version 2 URLs
  • In both the request and the response, the following keys now contain arrays with variants: name, street, city, state, zip, vat, national_vat, iban, bank_account, bank_code, gl_code.

GET /dataset/vendors/{region}

Version 1 and version 2 URLs
  • You can now use the optional externalId, skip, and take query parameters to get the data of one vendor.
  • In both the request and the response, the following keys now contain arrays with variants: name, street, city, state, zip, vat, national_vat, iban, bank_account, bank_code, gl_code.

DELETE /dataset/vendors/{region}

Version 1 and version 2 URLs

DELETE /dataset/vendor/{region}/{externalId}/{businessUnitId}

Version 1 and version 2 URLs

Training methods

POST /training

Version 1 and version 2 URLs

PUT /training

Version 1 and version 2 URLs

GET /training/layout/{taskId}/{fileId}

Version 1 and version 2 URLs

POST /training/station/{taskId}

Version 1 and version 2 URLs

PUT /training/station/{taskId}

Version 1 and version 2 URLs

GET /training/batch/{region}

Version 1 and version 2 URLs