Skip to main content
Returns a receipt for any completed transaction. Pass pdf as the type parameter to receive a base64-encoded PDF, or json for a structured data response.
GET https://api.yativo.com/api/v1/business/transaction/{transactionId}/{type}/receipt

Path parameters

transactionId
string
required
The UUID of the transaction.
type
string
required
Receipt format. Use "pdf" to receive a base64-encoded PDF document.
curl -X GET 'https://api.yativo.com/api/v1/business/transaction/a0e9e50e-81be-4bd0-9941-0151e68b9e97/pdf/receipt' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
{
  "status": "success",
  "status_code": 200,
  "message": "Request successful",
  "data": "JVBERi0xLjQKJeLjz9MKMiAwIG9iago8PC9MZW5ndGggMTM4Ni9GaWx0ZXIvRmxhdGVEZWNvZGU+Pg..."
}
The data field contains the PDF as a base64-encoded string. Decode it before writing to disk or serving to a client.