Skip to main content
To implement a multi-document processing scenario, create the following functions: CreateNewBatch AddDocumentToBatch RunBatchProcessing WaitFirstVerificationOrProcessedForMultiFileInvoice FetchingCapturedData MultiDocumentBatchIsProcessed

CreateNewBatch

The CreateNewBatch function creates a new batch and returns its identifier. There are no input parameters for this function. Output parameter type: int (batch identifier). Exceptions thrown: Exception. Java source:

AddDocumentToBatch

The AddDocumentToBatch function adds a document to a batch. Input parameters: There are no output parameters for this function. Exceptions thrown: Exception. Java source:

RunBatchProcessing

The RunBatchProcessing function initializes batch processing. Input parameters: There are no output parameters for this function. Exceptions thrown: Exception. Java source:

WaitFirstVerificationOrProcessedForMultiFileInvoice

The WaitFirstVerificationOrProcessedForMultiFileInvoice function returns a verification URL. If the document has not reached the verification stage, an empty string is returned. Input parameters: Output parameter type: String (verification URL). Exceptions thrown: Exception. Java source:

FetchingCapturedData

The FetchingCapturedData function returns a list of output fields in JSON format. Input parameters: Output parameter type: String (document fields in JSON format). Exceptions thrown: Exception. Java source:

MultiDocumentBatchIsProcessed

The MultiDocumentBatchIsProcessed function returns a value that specifies whether the batch has been processed or not. Input parameters: Output parameter type: boolean (true if the document is at the Processed stage and false otherwise). Exceptions thrown: Exception. Java source: