Image
API to download receipt with JPEG or PNG format after making prepaid transaction.
In production environment, you must whitelist your IP here to be able to download receipt.
Path
| Method | Path |
|---|---|
| GET | api/download/:tr_id |
Request Header
The Content-Type header in the request must be set appropriately to JPEG or PNG to get the desired image format of the receipt.
JPEG
Content-Type: image/jpeg
Path Parameters
| Attributes | Type | Description | Mandatory |
|---|---|---|---|
| tr_id | Integer | Transaction id | Yes |
Path Example
Path to download receipt in Image (JPEG/PNG) format.
BASE_URL/api/download/123
Success Image Receipt Response Example
The response will be receipt in JPEG/PNG file format.

Failed / Pending Response
| Attributes | Type | Description | Mandatory |
|---|---|---|---|
| rc | String | Response code. See response code list | Yes |
| message | String | Message | Yes |
| status | Double | Transaction Status. List of status: 0:PROCESS 1:SUCCESS 2:FAILED | Yes |
Failed Transaction Response Example
These response indicate a failed transaction status.
{
"data": {
"rc": "07",
"message": "FAILED",
"status": 2
}
}
Pending Transaction Response Example
These response indicate a pending transaction status.
{
"data": {
"rc": "39",
"message": "PROCESS",
"status": 0
}
}