Skip to main content

Download Transaction Receipt

Generate a PDF receipt for a SIL transaction and return it as a Base64 string. The receipt is tamper-proof and carries the tenant's branding (logo, primary colour).

This follows the same pattern as DownloadCoreTransactionReceiptCommand used in the core BPM channel.

Cmd: SITDownloadTransactionReceiptCommand
Permission: bnk_sit_view_transactions

Request​

Provide one of sitTransactionId or transactionReference:

{
"cmd": "SITDownloadTransactionReceiptCommand",
"data": {
"sitTransactionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
{
"cmd": "SITDownloadTransactionReceiptCommand",
"data": {
"transactionReference": "WDR-20260427-0001"
}
}
FieldTypeRequiredNotes
sitTransactionIdguidone ofGUID of the SIL transaction
transactionReferencestringone ofe.g. WDR-20260427-0001

Response​

{
"isSuccessful": true,
"statusCode": "00",
"message": "Transaction receipt generated successfully.",
"data": {
"base64Receipt": "JVBERi0xLjQKJcfsj6IK...",
"docType": ".pdf"
}
}
FieldDescription
base64ReceiptBase64-encoded PDF bytes. Decode and render / download on the client.
docTypeAlways .pdf

Client-side usage (JavaScript)​

const bytes = atob(data.base64Receipt);
const blob = new Blob(
[Uint8Array.from(bytes, c => c.charCodeAt(0))],
{ type: 'application/pdf' }
);
const url = URL.createObjectURL(blob);
// open in new tab or trigger download
window.open(url);

Receipt contents​

The generated PDF includes:

SectionFields
HeaderTenant logo, company name, "Transaction Receipt" title
Transaction detailsReference, type, date, amount, currency, status, narration
Ledger legsAccount number, Dr/Cr, amount, currency, branch per entry
FooterTamper-proof signature bar (tenant primary colour)

Error cases​

StatusCause
400Neither sitTransactionId nor transactionReference supplied
404Transaction not found for this tenant