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

MethodPath
GETapi/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
PNG
Content-Type: image/png

Path Parameters

AttributesTypeDescriptionMandatory
tr_idIntegerTransaction idYes

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. Image Receipt

Failed / Pending Response

AttributesTypeDescriptionMandatory
rcStringResponse code. See response code listYes
messageStringMessageYes
statusDoubleTransaction 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
    }
}