receipt

suspend fun receipt(receiptId: String, onResult: (Array<ReceiptResponse?>) -> Unit)

Retrieve the structured data extracted from the processed receipt image.

This method fetches the result of the receipt image processing from the server.

Parameters

receiptId

The unique identifier for the receipt obtained from the publish method.

onResult

A callback functions that revceives the array of ReceiptResponse objects, each containing the structured data extracted from an image of the receipt, or null if the retrieval fails.