processDocumentUrl

open override fun processDocumentUrl(fileUrl: String, fileUrls: List<String>?, categories: List<String>?, deleteAfterProcessing: Boolean, maxPagesToProcess: Int, boostMode: Boolean, externalId: String?, parameters: JSONObject?, @MainThread onSuccess: (String) -> Unit, @MainThread onError: (String) -> Unit)

Process Document from url and extract all the fields from it.

Parameters

fileUrl

Required if file_urls isn't specified. Publicly accessible URL to a file, e.g. "https://cdn.example.com/receipt.jpg".

fileUrls

Required if file_url isn't specifies. List of publicly accessible URLs to multiple files, e.g. "https://cdn.example.com/receipt1.jpg", "https://cdn.example.com/receipt2.jpg"

categories

List of categories to use when categorizing the document

deleteAfterProcessing

Delete this document from Veryfi after data has been extracted

maxPagesToProcess

When sending a long document to Veryfi for processing, this parameter controls how many pages of the document will be read and processed, starting from page 1.

boostMode

Flag that tells Veryfi whether boost mode should be enabled. When set to 1, Veryfi will skip data enrichment steps, but will process the document faster. Default value for this flag is 0

externalId

Optional custom document identifier. Use this if you would like to assign your own ID to documents

parameters

Additional request parameters

onSuccess

Async callback in success case.

onError

Async callback in error case.