Top-up Receipt (PDF)

GET /v1/billing/balance/topups/{id}/receipt.pdf

The receipt for one prepaid-balance top-up of the active account, as a PDF. It shows the amount credited to the balance, the tax, the total charged, the date paid, the payment reference, the seller details and the account's billing details. It carries the same facts as the receipt email sent when the top-up was credited.

Receipts for subscription invoices are a separate route: GET /v1/billing/invoices/{id}/receipt.pdf.

Path parameters

id integer Req
The ledger row id of a type: "topup" row from GET /v1/billing/balance/transactions.

Query parameters

inline string
1 serves the PDF for viewing in the browser instead of as a download.

Response (200 OK)

application/pdf, file name Receipt-TU-<id>.pdf. Requires billing:read on the account.

Errors

403 Forbidden
The caller lacks billing:read on the active account.
404 Not Found
No such row, the row isn't a top-up, or it belongs to another account.
502 Bad Gateway
The payment couldn't be read from the payment provider. No partial receipt is returned; retry later.
Request
curl "https://api.ngris.com/v1/billing/balance/topups/1042/receipt.pdf" \ -H "X-API-KEY: <your_api_key>" \ -o receipt.pdf
On this page
Top-up Receipt (PDF)