md parameter can accept a JSON file in two formats: direct encoded link or encoded JSON.
To use an encoded link:
- Generate a direct access link to the JSON file.
Note: The link should start with “http://” or “https://”.
- Encode the obtained link to URL-encoded format.
- Specify the encoded URL as the value for the
mdparameter in the mobile upload link.
- Encode the JSON file to URL-encoded format.
- Specify the encoded JSON file as the value for the
mdparameter in the mobile upload link.
JSON structure
TransactionStructure defines a set of documents expected to be captured by the user during a mobile upload session for further processing in a transaction. The transaction will not start until all documents are captured.| Properties | Value | Description |
|---|---|---|
version | 2.4 | The current ABBYY Vantage version. Note: The value should correspond to the v parameter value in the mobile upload link. |
elements | ElementStructure | The structure of the collection of elements. |
| Properties | Value | Description |
|---|---|---|
type | standalone | Defines a collection with one set of documents. |
type | single_choice | Defines a collection with multiple sets of documents. Note: Requires at least two specified sets of documents. |
name | The name of the set of documents that will be displayed on the Capture Documents screen in the micro application. Note: Available only for the single_choice type. | |
document | DocumentStructure | The structure of one document in the set. Note: Available only for the standalone type. |
documents | DocumentStructure | The structure of all documents in the set. Note: Available only for the single_choice type. |
| Properties | Value | Description |
|---|---|---|
type | idcard | Defines capturing both sides (front and back) of an ID card. |
type | passport | Defines capturing the first page of a passport. |
type | document | Defines capturing any documents. |
name | The name of the document that will be displayed on the Capture Documents screen in the micro application. | |
count | 1,2,3... | The required number of documents to be captured in one transaction. The default value is “1”. Note: The upload will not start until all documents are captured. |
count | any | The number of documents to be captured in one transaction. Note: The upload will start with any number of captured documents. |
galleryEnabled | false/true | Defines whether uploading images of document pages from the device Gallery is allowed for this document. |
pages | PagesStructure | The structure of the document pages. |
| Properties | Value | Description |
|---|---|---|
name | Front side/Back side | The names of the pages of an ID card. |
name | First page with photo | The name of the first page of a passport. |
name | Document page name | The names of the pages of any document. |
count | 1,2,3... | The required number of pages to be captured for the document. The default value is “1”. The upload will not start until all pages of the document are captured. Note: The required value for the front and back side of an ID card is “1”. |
count | any | The number of pages to be captured for any document. The upload will start with any number of captured pages. Note: The required value for the first page of a passport is “1”. The required value for other passport pages is “any”. |
