- Applications
The new version introduces the concept of applications. One account can have multiple applications which operate independently. Each application can only work with its own tasks, processing data, and training models, and cannot access any of this information for other applications. - Multi-column fields
The fields may have variants now, allowing for spelling differences and mistakes, which makes it easier to match the vendors and business units. The captured fields will be represented by arrays with variants. - Version updated in URLs
The URLs were renamed according to the version: the v1 in the URL was changed to v2.
Working with files
POST https://api-{location-id}.flexicapture.com/v1/file
POST https://api-{location-id}.flexicapture.com/v1/file
- removed the email query parameter; the email address of the account will be used
- added to the response: application (application ID) and expiring (the file expiration date)
- removed from the response: the keys concerning the file validation and deletion (validated, is_validated, deleted, is_deleted), error message (error) and the number of pages (pages_count)
GET https://api-{location-id}.flexicapture.com/v1/file/{id}/{token}/info
GET https://api-{location-id}.flexicapture.com/v1/file/{id}/{token}/info
- for deleted files you can’t get metadata anymore; response 404 is now returned
- added to the response: application (application ID) and expiring (the file expiration date)
- removed from the response: the keys concerning the file validation and deletion (validated, is_validated, deleted, is_deleted), error message (error) and the number of pages (pages_count)
GET https://api-{location-id}.flexicapture.com/v1/file/{id}/{token}
GET https://api-{location-id}.flexicapture.com/v1/file/{id}/{token}
DELETE https://api-{location-id}.flexicapture.com/v1/file/{id}/{token}
DELETE https://api-{location-id}.flexicapture.com/v1/file/{id}/{token}
Capturing documents
POST https://api-{location-id}.flexicapture.com/v1/capture/data
POST https://api-{location-id}.flexicapture.com/v1/capture/data
- the request body should no longer contain the email and label keys
- region, export_format, and verification_type keys are moved to the properties dictionary
- 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, with the files key moved from services array to documents array
- number is now string instead of integer
- progress is now a floating point number instead of integer
Invoice capturing tasks
POST https://api-{location-id}.flexicapture.com/v1/capture/invoices
POST https://api-{location-id}.flexicapture.com/v1/capture/invoices
- the request body should no longer contain the business_unit, email and label keys
- region, export_format, and verification_type keys are moved to the properties dictionary
- 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, with the files key moved from services array to documents array
- number is now string instead of integer
- progress is now a floating point number instead of integer
- region, export_format, and verification_type keys are moved to the properties dictionary
GET https://api-{location-id}.flexicapture.com/v1/task/{id}
GET https://api-{location-id}.flexicapture.com/v1/task/{id}
- 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}, relating 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, with the files key moved from services array to documents array
- number is now string instead of integer
- progress is now a floating point number instead of integer
- region, export_format, and verification_type keys are moved to the properties dictionary
DELETE https://api-{location-id}.flexicapture.com/v1/task/{id}
DELETE https://api-{location-id}.flexicapture.com/v1/task/{id}
Working with datasets
POST https://api-{location-id}.flexicapture.com/v1/dataset/businessunits
POST https://api-{location-id}.flexicapture.com/v1/dataset/businessunits
PUT https://api-{location-id}.flexicapture.com/v1/dataset/businessunits
PUT https://api-{location-id}.flexicapture.com/v1/dataset/businessunits
GET https://api-{location-id}.flexicapture.com/v1/dataset/businessunits/{region}
GET https://api-{location-id}.flexicapture.com/v1/dataset/businessunits/{region}
DELETE https://api-{location-id}.flexicapture.com/v1/dataset/businessunits/{region}
DELETE https://api-{location-id}.flexicapture.com/v1/dataset/businessunits/{region}
DELETE https://api-{location-id}.flexicapture.com/v1/dataset/businessunit/{region}/{externalId}
DELETE https://api-{location-id}.flexicapture.com/v1/dataset/businessunit/{region}/{externalId}
POST https://api-{location-id}.flexicapture.com/v1/dataset/vendors
POST https://api-{location-id}.flexicapture.com/v1/dataset/vendors
PUT https://api-{location-id}.flexicapture.com/v1/dataset/vendors
PUT https://api-{location-id}.flexicapture.com/v1/dataset/vendors
GET https://api-{location-id}.flexicapture.com/v1/dataset/vendors/{region}
GET https://api-{location-id}.flexicapture.com/v1/dataset/vendors/{region}
DELETE https://api-{location-id}.flexicapture.com/v1/dataset/vendors/{region}
DELETE https://api-{location-id}.flexicapture.com/v1/dataset/vendors/{region}
DELETE https://api-{location-id}.flexicapture.com/v1/dataset/vendors/{region}/{externalId}
DELETE https://api-{location-id}.flexicapture.com/v1/dataset/vendors/{region}/{externalId}
Training the data capture models
POST https://api-{location-id}.flexicapture.com/v1/data/train
POST https://api-{location-id}.flexicapture.com/v1/data/train
PUT https://api-{location-id}.flexicapture.com/v1/data/train
PUT https://api-{location-id}.flexicapture.com/v1/data/train
GET https://api-{location-id}.flexicapture.com/v1/data/{taskId}/{fileId}
GET https://api-{location-id}.flexicapture.com/v1/data/{taskId}/{fileId}
POST https://api-{location-id}.flexicapture.com/v1/data/train/station/{taskId}
POST https://api-{location-id}.flexicapture.com/v1/data/train/station/{taskId}
PUT https://api-{location-id}.flexicapture.com/v1/data/train/station/{taskId}
PUT https://api-{location-id}.flexicapture.com/v1/data/train/station/{taskId}
GET https://api-{location-id}.flexicapture.com/v1/data/batch/{region}
GET https://api-{location-id}.flexicapture.com/v1/data/batch/{region}
