Skip to main content
Vantage Mobile Upload communicates with the Vantage server by using API calls. These calls are used to create documents, upload images, and start processing transactions with certain parameters.

API calls by platform

iOS platform

The iOS micro application of Vantage Mobile Input uses the following API calls:
  1. Sending parameters of the input session to the Vantage Mobile Upload Backend
  2. Getting parameters of the input session from the Vantage Mobile Upload Backend
  3. Getting status of the transaction
  4. Downloading models for analyzing images of the documents
  5. Getting list of the documents in the transaction
  6. Deleting existing documents in the transaction
  7. Creating a document in the transaction
  8. Uploading captured images to the document
  9. Starting the transaction

Android platform

The Android micro application of Vantage Mobile Input uses the following API calls:
  1. Getting status of the transaction
  2. Downloading models for analyzing images of the documents
  3. Getting list of the documents in the transaction
  4. Deleting existing documents in the transaction
  5. Creating a document in the transaction
  6. Uploading captured images to the document
  7. Starting the transaction

Sending input session parameters to the Vantage Mobile Upload Backend

Vantage Mobile Input sends input session parameters to the Vantage Mobile Upload Backend. These parameters are used for the upload session in the Android micro application or in the web browser.

Input session parameters

KeyDescription
BaseURLThe main domain of Vantage server.
TransactionIDThe identifier of the transaction.
TokenThe encoded authorization access token that is used for authorized access to the Vantage API.
vThe version of the Vantage API.
mdThe quantity of the documents that will be captured in one transaction.
redirect_uriThe redirect link that opens once Vantage Mobile Upload is finished.
dtThe document type.
maThe ABBYY Vantage cloud environment address that is used to start micro applications for on-premises installations.
Request:
Response:

Getting input session parameters from Vantage Mobile Upload Backend

To get the input session parameters, Vantage Mobile Upload sends requests to Vantage Mobile Upload Backend.

Input session parameters

KeyDescription
BaseURLThe main domain of Vantage server.
TransactionIDThe identifier of the transaction.
TokenThe encoded authorization access token that is used for authorized access to the Vantage API.
vThe version of the Vantage API.
mdThe quantity of the documents that will be captured in one transaction.
redirect_uriThe redirect link that opens once Vantage Mobile Upload is finished.
dtThe document type.
maThe ABBYY Vantage cloud environment address that is used to start micro applications for on-premises installations.
Request:
Response:
Sample of input session parameters:

Getting the status of the transaction

Vantage Mobile Upload sends a request to get the transaction identifier and status. Only transactions with the New status are valid for uploading documents. Key parameters
KeyDescription
TransactionIDThe identifier of the transaction.
StatusThe status of the transaction. Possible values: New, Started, Processing, Processed
Request: Response:

Downloading the models for analyzing images of the documents

Vantage Mobile Upload sends requests to download models for detecting page edges on the images of the documents for the iOS micro application. Key parameters
KeyDescription
AbbyyRtrSDK-versionThe version of AbbyyRtrSDK framework used to request the relevant pattern files. The value may change depending on the version of Vantage.
PatternFileNameThe name of the AbbyyRtrSDK file pattern that is used for detecting page edges on the images of the documents. There are six types of file patterns: FactCrop.imodel, CnnCrop.Classifier.cnnmodel, DIQClassifier.imodel, CnnCrop.Detector.GenericWithID.cnnmodel, DIQBlockClassifier.imodel, CropClassifierPhoto.imodel
Request: Response:

Getting a list of the documents in the transaction

Before uploading documents to the transaction, Vantage Mobile Upload sends a request to check the transaction for previously created documents. If the transaction is not empty, Vantage Mobile Upload sends a Delete document request to delete all existing documents before a new upload session. Key parameters
KeyDescription
TransactionIDThe identifier of the transaction.
DocumentIDThe identifier of the document received from the Creating a document request.
SourceFileIDThe identifier of the document image.
SourceFileNameThe name of the document image. Vantage Mobile Upload automatically generates file names for each image and uploads images to the document using the Uploading Images to the document request.
Request: Response:

Deleting existing documents in the transaction

To remove a document from the transaction before starting processing, use DELETE /api/publicapi/v1/transactions/{transactionId}/documents/{documentId}. This allows users to:
  • Remove incorrectly captured documents
  • Clear documents before re-capturing
  • Manage document sets in the transaction
Documents can only be deleted before the transaction starts processing.

Creating a document in the transaction

To upload images Vantage Mobile Upload sends a request to create document instances for each document in the transaction. Key parameters
KeyDescription
TokenThe encoded authorization access token that is used for authorized access to the Vantage API.
TransactionIDThe identifier of the transaction.
DocumentIDThe identifier of the document.
Request: Response:

Uploading captured images to the document

Once the document instance has been created, Vantage Mobile Upload sends a request to upload all the images to the document. All images for one document are uploaded in a single request. Key parameters
KeyDescription
TokenThe encoded authorization access token that is used for authorized access to the Vantage API.
TransactionIDThe identifier of the transaction.
DocumentIDThe identifier of the document received from the Creating a document request.
SourceFileIDThe identifier of the document image.
SourceFileNameThe name of the document image. Vantage Mobile Upload automatically generates file names for each image and uploads images to the document.
ImageDataThe encoded information from the image files. Used to upload images to documents.
Request: Response:

Starting the transaction

Once all the documents have been created and all the images have been uploaded to the documents, Vantage Mobile Upload sends a request to start the transaction. Key parameters
KeyDescription
TokenThe encoded authorization access token that is used for authorized access to the Vantage API.
TransactionIDThe identifier of the transaction.
Request: Response: