get https://api.instantpay.in/cards/gift/statement/{{kitNumber}}?pageNumber=0
The API will be used to transaction details.
Header Parameters
For Header references Click here
Query Params
Name | Description |
---|---|
kitnumber | pass the kitnumber of the card in the url body |
Sample Request
curl --location --request GET 'https://api.instantpay.in/cards/gift/statement/{{kitNumber}}?pageNumber=0' \
--header 'X-Ipay-Auth-Code: {{authCode}}' \
--header 'X-Ipay-Client-Id: {{clientId}}' \
--header 'X-Ipay-Client-Secret: {{clientSecret}}' \
--header 'X-Ipay-Endpoint-Ip: {{endPointIP}}' \
GET /cards/gift/statement/{{kitNumber}}?pageNumber=0 HTTP/1.1
Host: api.instantpay.in
X-Ipay-Auth-Code: {{authCode}}
X-Ipay-Client-Id: {{clientId}}
X-Ipay-Client-Secret: {{clientSecret}}
X-Ipay-Endpoint-Ip: {{endPointIP}}
Response Parameters
Name | Type | Description |
---|---|---|
statuscode | String | InstantPay Status Code |
actcode | String | Action Code |
status | String | Status Message |
data | Array | Response Data (If Present) |
timestamp | String | Current Time (YYYY-MM-DD HH:II:SS) |
ipay_uuid | String | Request Reference Number |
orderid | String | Transaction Id ( If transaction otherwise it is null ) |
environment | String | Live/Sandbox |
Sample Response
{
"statuscode": "TXN",
"actcode": null,
"status": "Statement fetched successfully",
"data": {
"meta": {
"totalPages": 1,
"currentPage": 1,
"totalRecords": 1,
"recordsOnCurrentPage": 1,
"recordFrom": 1,
"recordTo": 1
},
"records": [
{
"type": "Credit",
"amount": "5.00",
"openingBalance": "0.00",
"closingBalance": "5.00",
"narration": "Received a Gift Card worth Rs. 5.00.",
"date": "2022-04-11",
"time": "12:01:06"
}
]
},
"timestamp": "2022-04-11 12:22:27",
"ipay_uuid": "h00696092383-8e0e-42c3-9ad9-fb02a4cefcd4",
"orderid": null,
"environment": "LIVE",
}