Transaction Status
If you want to check specific transaction status you can use the following URL to send GET request in order to retrieve transaction status:
http://api.centili.com/api/payment/1_4/transaction
Required parameters:
Parameter | Description | Example | Required |
---|---|---|---|
transactionId | transactionId is unique parameter under Centili platform related with only one transaction. | Decoded: /3+enZv5EgW3N4M1j7I874Q== Encoded: 3%2BenZv5EgW3N4M1j7I874Q%3D%3D | mandatory |
apikey | Centili issued service key, unique for every payment service. Consists of alphanumeric characters and counts up to 32 characters. | 62be1b74d51cb8d5303f1608563c2afd | mandatory |
Example of correctly configured URL for Transaction Status:
http://api.centili.com/api/payment/1_4/transaction?transactionid=3%2BenZv5EgW3N4M1j7I874Q%3D%3D&apikey=62be1b74d51cb8d5303f1608563c2afd
What happens next?
After transaction status checking is finished response will be returned back in JSON format via HTTP POST request:
{
"status": "ACCEPTED",
"errorMessage": null,
"transactionId": "3+enZv5EgW3N4M1j7I874Q==",
"clientId": "you7651f3df98d1b1cdd34e1313ca4e3592",
"apiKey": "0d213511cf2e2de4b309c37c1a66bddd",
"chargeURL": "http:\/\/47.88.241.13:8077\/partners\/infobipdr",
"wap": false,
"price": 5,
"countryCode": "ph",
"operatorCode": "PH_GLOBE",
"operatorType": "MOBILE",
"msisdn": "xxxx51258629",
"mcc": "515",
"mnc": "01",
"action": null,
"sessionStatus": "COMPLETED",
"urlRedirect": null,
"pinPattern": null,
"premiumInstructions": null,
"handshakeInstructions": null,
"shortCode": "2649",
"mtShortCode": "2649",
"smsBody": "CENT 5 PPS",
"message": null
}
Parameters Explanation:
Parameter | Description | Example |
---|---|---|
status | Indicates status of the current request | Possible values: ACCEPTED SERVER_ERROR |
errorMessage | If the error is present this parameter will have value | Possible values: * Server failed to process request |
transactionId | Unique transaction identifier under Centili platform | 3+enZv5EgW3N4M1j7I874Q== |
clientId | Pass-through variable. Merchant platform identifier | you7651f3df98d1b1cdd34e1313ca4e3592 |
msisdn | User phone number | xxxx51258629 |
action | If the error is present this parameter will have value | Possible values: * ERROR |
sessionStatus | Indicates transaction status | Possible values: COMPLETED FAILED * CANCELED |
If you pass incorrect transactionId parameter value you will receive following response:
{
"status": "SERVER_ERROR",
"errorMessage": "Server failed to process request",
"transactionId": null,
"clientId": null,
"apiKey": null,
"chargeURL": null,
"wap": false,
"price": null,
"countryCode": null,
"operatorCode": null,
"operatorType": null,
"msisdn": null,
"mcc": null,
"mnc": null,
"action": null,
"sessionStatus": null,
"urlRedirect": null,
"pinPattern": null,
"premiumInstructions": null,
"handshakeInstructions": null,
"shortCode": null,
"mtShortCode": null,
"smsBody": null,
"message": null
}
NOTE:
Transaction status can be checked within 12 hours from the moment of its creation. After that, you will be unable to perform this action.
Updated over 6 years ago