6, Payment Status
API to get the status of a payment
API Endpoints
Production Base URL /api/GenToken/GetStatusSandbox Base URL /api/GenToken/GetStatusSample Request & Response
{
"merchantCode":"xxxxx",
"authKey":"xxxxx",
"ReferenceID":"(15 digit number passing during the payment creation)"
{
"errorCode": 0,
"errorMessgae": "",
"result": {
"tranDate": 260125,
"referenceID": 479865896769733,
"amount": 10,
"charges": 0.25,
"paidAmount": 10,
"countryCode": "KW",
"currencyCode": "KWD",
"paymentChannelCode": "KWKNETDCCORE",
"tunnel": "kibtest",
"authCode": "B30286",
"transactionID": "502610000474188",
"refID": "502610000300",
"paymentID": "100502610000004439",
"result": "CAPTURED",
"status": 1,
"merchantRef": null,
"transactionDate": "2025-01-26T12:01:55.4101568",
"processedDate": "2025-01-26T12:02:36.7615293",
"mobile": "0",
"email": null,
"response": "REFUNDED",
"info1": "USA",
"info2": null,
"info3": null,
"settlementDate": null,
"settledDate": null,
"settledBy": null,
"isRefunded": true,
"refundAmount": 10,
"refundedOn": "2025-01-26T12:03:38.637",
"refundRefrence": null,
"commissionAmnt": null,
"serviceAmount": null,
"merchantName": null,
"originalAmount": null,
"commissionDetails": null,
"vat": null,
"vatAmount": null,
"finalCommission": null
}
}Response Explanation
If errorCode is not "0" then check errorMessage for more details.
If errorCode is "0" then only check for Result object.
Response Parameters
Parameters
Datatype
Description
RefrenceId
Long
15-digit unique transaction number
Amount
decimal
Amount of transaction
tranDate
Integer
date of the transaction in (DDMMYY)
result
string
show the result of the transaction (CANCELED or CAPTURED)
isRefunded
bool(nullable)
true if refunded
Sample Code to post data
Last updated