Download a receipt
GET
https://instantrecharge.com.ng/api/v1/orders/{id}/receiptReturns the PDF receipt for a delivered order, the same one consumers download. For electricity and TV it shows the name and address registered to the meter or decoder, which customers can use as proof of address.
No API key is needed: the order ID is the access key, so share receipt links only with the customer.
Public: no API key needed.
Path parameters
| Name | Type | Description |
|---|---|---|
idrequired | string | Our order ID (starts with IR). |
Responses
200The PDF file.
Content type application/pdf
404No order with that ID.
{
"type": "not_found",
"message": "Order not found"
}409The order isn't delivered yet.
{
"type": "not_ready",
"message": "A receipt is available once the order is delivered"
}
