receipt

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

Retrieve the structured data extracted from the processed receipt images.

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.

token

The address token to connect with TIKI API.

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.