Name | Type | Description | Mandatory(M),Optional(O) | Provided by INSTANTPAY(Y/N) |
---|
X-Ipay-Auth-Code | String | Auth Code - 1 (Fixed) | M | Y |
X-Ipay-Client-Id | String | Unique Client Id | M | Y |
X-Ipay-Client-Secret | String | Unique Client Secret | M | Y |
X-Ipay-Endpoint-Ip | String | End Customer IP Address | M | Y |
Name | Type | Requirement | Description |
---|
externalRef | String | Mandatory | Unique Transaction id |
productKey | String | Mandatory | Product Key |
denomination | Integer | Mandatory | Denomination |
sender | Array | | |
sender.name | String | Mandatory | Name of the sender |
receiver | Array | | |
receiver.name | String | Mandatory | Name of the receiver |
receiver.contact | String | Mandatory | Mobile number or Email Id of the receiver |
receiver.gift_message | String | Mandatory | Gift message |
latitude | String | Mandatory | Current Location Latitude |
longitude | String | Mandatory | Current Location Longitude |
curl --location 'https://api.instantpay.in/cards/brand/order' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-Ipay-Auth-Code: {{authCode}}' \
--header 'X-Ipay-Client-Id: {{clientId}}' \
--header 'X-Ipay-Client-Secret: {{clientSecret}}' \
--header 'X-Ipay-Endpoint-Ip: {{endPointIP}}' \
--data-raw '{
"externalRef" : "123456789",
"productKey": "YYQEGCGBFM001",
"denomination": 1,
"sender": {
"name": "Sample Name"
},
"receiver": {
"name": "Instantpay India Ltd.",
"contact" : "[email protected]",
"gift_message": "Hope you enjoy this gift card!"
},
"latitude": "27.204",
"longitude": "77.497"
}
'
POST /cards/brand/order HTTP/1.1
Host: api.instantpay.in
Accept: application/json
Content-Type: application/json
X-Ipay-Auth-Code: 1
X-Ipay-Client-Id: YWY3OTAzYzNlM2ExZTJlOX923SyPZlQWg5sCmZbpfcw=
X-Ipay-Client-Secret: 6f3d58493d8585d2d6dffb0225fc117129071c7411a5c56d77fc0514304353cb
X-Ipay-Endpoint-Ip: 45.115.105.205
Content-Length: 392
{
"externalRef" : "T2",
"productKey": "YYQEGCGBFM001",
"denomination": 1,
"sender": {
"name": "Sample Name"
},
"receiver": {
"name": "shahbaz.",
"contact" : "[email protected]",
"gift_message": "Hope you enjoy this gift card!"
},
"latitude": "27.204",
"longitude": "77.497"
}
Parameter Name | Type | Description |
---|
statuscode | String | InstantPay StatusCode |
actcode | String | Action Code |
status | String | Status message |
data | String | Response Data(if Present) |
timestamp | String | Response time(YYYY-MM-DD HH:||:SS) |
ipay_uuid | String | Request reference number |
orderid | String | Transaction Id(if transaction otherwise it is null) |
environment | String | Live/Sandbox |
internalCode | String | it will be null |
{
"statuscode": "TXN",
"actcode": null,
"status": "Transaction Successful",
"data": {
"externalRef": "T2",
"poolReferenceId": "DQC012313912004910",
"txnValue": "1.00",
"txnReferenceId": "00",
"pool": {
"account": "7428585742",
"openingBal": "555.05",
"mode": "DR",
"amount": "1.00",
"closingBal": "554.05"
},
"sender": {
"name": "Sample Name"
},
"receiver": {
"name": "Instantpay India Ltd.",
"contact" : "[email protected]",
"cardNumber": "1234567890",
"cardPin": "172767",
"cardExpiry": "2024-05-18"
}
},
"timestamp": "2023-05-19 12:00:54",
"ipay_uuid": "h0059933ce62-82cf-4bb7-8d1a-835643737d74",
"orderid": "DQC012313912004910",
"environment": "LIVE",
"internalCode": null
}