Skip to main content
A multi-document processing scenario needs six functions. Create each one as described in Create a function.

Functions to create

CreateNewBatch

The CreateNewBatch function creates a new batch and returns its identifier.

Parameters

None.

Return value

int, the batch identifier.

Exceptions

Exception

Java source

AddDocumentToBatch

The AddDocumentToBatch function adds a document to a batch.

Parameters

Return value

None.

Exceptions

Exception

Java source

RunBatchProcessing

The RunBatchProcessing function starts batch processing.

Parameters

Return value

None.

Exceptions

Exception

Java source

WaitFirstVerificationOrProcessedForMultiFileInvoice

The WaitFirstVerificationOrProcessedForMultiFileInvoice function returns a verification URL. If the document has not reached the verification stage, it returns an empty string.

Parameters

Return value

String, the verification URL.

Exceptions

Exception

Java source

FetchingCapturedData

The FetchingCapturedData function returns a list of output fields in JSON format.

Parameters

Return value

String, the document fields in JSON format.

Exceptions

Exception

Java source

MultiDocumentBatchIsProcessed

The MultiDocumentBatchIsProcessed function reports whether the batch has been processed.

Parameters

Return value

boolean, which is true if the document is at the Processed stage and false otherwise.

Exceptions

Exception

Java source