Getting a list of transactions
A list of all active or completed transactions can be used to:- Track active transactions currently at the Manual Review stage.
- Obtain a manual review link for active transactions.
- Download the result files of completed transactions.
List of active transactions
To get a list of active transactions, send a GET request to thetransactions/active resource.
In the request body, specify the following parameters:
| Parameter | Description |
|---|---|
| StageType | The stage of the transaction. The possible values are: - ManuaReview - CustomActivity - Automatic (all stages in which the user is not required, for example, extracting fields) |
| StageName | The name of the specific action (only for the ManualReview stage). |
| SkillId | The skill identifier. If no value is specified, all available skills will be taken into account. |
| SkillVersion | The skill version. If no value is specified, all versions of available skills will be taken into account. |
| StartDate | The creation time of the earliest transaction (must be specified in UTC format). |
| EndDate | The creation time of the latest transaction (must be specified in UTC format). If this value is not specified, the current UTC time will be used instead. |
| TransactionParameters | The list of transaction parameters consisting of key-value string pairs. These parameters provide additional user information (for example, the client name). Parameters must be provided in the following format: TransactionParameters={“key”: “string_1”,”value”:”string”}&TransactionParameters={“key”: “string_2”,”value”:”string”} |
| DocumentParameters | The list of document parameters consisting of key-value string pairs. These parameters provide additional document information (for example, the file name). Parameters must be provided in the following format: DocumentParameters={“key”: “string_1”,”value”:”string”}&DocumentParameters={“key”: “string_2”,”value”:”string”} |
| Offset | The pagination offset. The default value of the parameter is 0. |
| Limit | The pagination limit. The parameter is required. The default value of the parameter is 0. |
transactions/<transaction_id> resource with the transaction identifier in the request URI.
Sample request (Windows):
manualReviewLink key will contain a link to the web interface of the Manual Review client and a Vantage access token, if manual review is required. This link and token can be used to review and correct the classification and field extraction results of a particular transaction. The provided link is valid for 168 hours, after which a new link should be created and obtained for another period of 168 hours using the same method. For more information, see Integrating manual review.
Users authorized via this link will not be able to view or modify any other documents or transactions.
List of completed transactions
To get a list of completed transactions, send a GET request to thetransactions/completed resource.
In the request body, specify the parameters:
| Parameter | Description |
|---|---|
| TransactionStatus | The status of the transaction. The possible values are: - Processed - Canceled - Failed |
| SkillId | The skill identifier. If no value is specified, all available skills will be taken into account. |
| SkillVersion | The skill version. If no value is specified, all versions of available skills will be taken into account. |
| StartDate | The creation time of the earliest transaction (must be specified in UTC format). |
| EndDate | The creation time of the latest transaction (must be specified in UTC format). If this value is not specified, the current UTC time will be used instead. |
| TransactionParameters | The list of transaction parameters consisting of key-value string pairs. These parameters provide additional user information (for example, the client name). Parameters must be provided in the following format: TransactionParameters={“key”: “string_1”,”value”:”string”}&TransactionParameters={“key”: “string_2”,”value”:”string”} |
| DocumentParameters | The list of document parameters consisting of key-value string pairs. These parameters provide additional document information (for example, the file name). Parameters must be provided in the following format: DocumentParameters={“key”: “string_1”,”value”:”string”}&DocumentParameters={“key”: “string_2”,”value”:”string”} |
| Offset | The pagination offset. The default value of the parameter is 0. |
| Limit | The pagination limit. The parameter is required. The default value of the parameter is 0. |
