Skip to main content
Transaction and file registration parameters are parameters consisting of key-value string pairs designed to provide additional user information (for example, client name, document type, and file source information). They are passed for processing along the transaction or the transaction documents. These parameters are available to all workers and can be used in various production scenarios:
  • A program that uses ABBYY Vantage signs every transaction using an end-client attribute for the purposes of compiling reports and creating custom processing procedures (e.g. filtering counterparty data catalogs by client).
  • A Scanning Station client (or a different origin for transactions) can pass the registration parameters of a document batch (such as an external correlation ID).
Registration parameters can be set using the Vantage API:
  1. When creating an empty transaction or when initializing a transaction using the launch method. To do so, send a POST request to the transactions resource like in the example below:
POST https://your-server/api/publicapi/v1/transactions
or
POST https://your-server/api/publicapi/v1/transactions/launch?skillId=skill-id
In the request body, specify the registration parameters and run the following command: For Windows:
curl -X POST "https://your-server/api/publicapi/v1/transactions" \
-H "Authorization: Bearer token" \
-H "Content-Type: application/json" \
-d "{\"skillId\":\"123\"}" \
   "registrationParameters": [
     {
       "key": "key1",
       "value": "value1"
     }
   ]
For Linux:
curl -X POST 'https://your-server/api/publicapi/v1/transactions' \
-H 'Authorization: Bearer token' \
-H 'Content-Type: application/json' \
-d '{"skillId":"123"}' \
   'registrationParameters': [
     {
       'key': 'key1',
       'value': 'value1'
     }
   ]
  1. When uploading files to a transaction or a document. To do so, send a POST request to the transactions/<transaction-id>/files resource like in the example below:
POST https://your-server/api/publicapi/v1/transactions/transaction-id/files
In the request body, specify the registration parameters and run the following command: For Windows:
curl -X POST "https://your-server/api/publicapi/v1/transactions/transaction-id/files" \
-H "accept: */*" \
-H "Authorization: Bearer token" \
-H "Content-Type: multipart/form-data" \
-F "Model={
   \"files\": [
     {
       \"index\": 0,
       \"imageProcessingOptions\": {
         \"autoCrop\": \"Default\",
         \"autoOrientation\": \"Default\"
       },
       \"registrationParameters\": [
         {
           \"key\": \"key1\",
           \"value\": \"value1\"
         }
       ]
     }
   ]
}" \
-F "Files=@testImage.tif;type=image/tiff"
For Linux:
curl -X POST 'https://your-server/api/publicapi/v1/transactions/transaction-id/files' \
-H 'accept: */*' \
-H 'Authorization: Bearer token' \
-H 'Content-Type: multipart/form-data' \
-F 'Model={
   "files": [
     {
       "index": 0,
       "imageProcessingOptions": {
         "autoCrop": "Default",
         "autoOrientation": "Default"
       },
       "registrationParameters": [
         {
           "key": "key1",
           "value": "value1"
         }
       ]
     }
   ]
}' \
-F 'Files=@testImage.tif;type=image/tiff'
Important! There can be a maximum of 10 key-value type parameters, with the key parameter containing up to 128 characters and the value parameter containing up to 256 characters. The values of these parameters cannot be changed once they have been set.
Registration parameter values can be read:
  • in Custom activity scripts,
  • in External Export scripts in Output activity,
  • in business rules.
You can get registration parameter values using the Vantage API as follows:
  1. By calling the registrationParameters method for the transactions/<transaction-id>/registrationParameters resource:
GET https://your-server/api/publicapi/v1/transactions/transaction-id/registrationParameters/
The response will look like the following:
[
  {
    "key": "key1",
    "value": "value1"
  }
]
  1. By using a download method call for the transactions/<transaction-id>/files/<file-id>/download resource to get the values in JSON format alongside the file being uploaded:
GET https://your-server/api/publicapi/v1/transactions/transaction-id/files/file-id/download