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
emailquery parameter. The email address of the account is used instead. - Added to the response:
application(application ID) andexpiring(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
404response. - Added to the response:
application(application ID) andexpiring(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 body no longer contains the
emailandlabelkeys. - The
region,export_format, andverification_typekeys are moved to thepropertiesdictionary.
- 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
servicesarray was removed. Thefileskey moved from theservicesarray to thedocumentsarray. numberis now a string instead of an integer.progressis now a floating-point number instead of an integer.
Invoice capture tasks
POST /task/capture/invoices
Version 1 and version 2 URLs
- The request body no longer contains the
business_unit,email, andlabelkeys. - The
region,export_format, andverification_typekeys are moved to thepropertiesdictionary.
- 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
servicesarray was removed. Thefileskey moved from theservicesarray to thedocumentsarray. numberis now a string instead of an integer.progressis now a floating-point number instead of an integer.
GET /task/{id}
Version 1 and version 2 URLs
- 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
servicesarray was removed. Thefileskey moved from theservicesarray to thedocumentsarray. numberis now a string instead of an integer.progressis 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, andtakequery 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, andtakequery 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
