Get Transaction Status
To get transction status from Payment Platform, utilize the "GET_TRANS_STATUS" request.
API Endpoint
Request URL: {{API_HOST}}
Request Method: POST
Request Body: x-www-form-urlencoded
Response Body: JSON
tip
- {{API_HOST}}
- The request should be initiated in the background (e.g. through PHP CURL).
| Parameter | Description | Values | Required |
|---|---|---|---|
action | GET_TRANS_STATUS | GET_TRANS_STATUS | Y |
client_key | Merchnat Key provided by TESS Payments | Y | |
trans_id | Transaction ID in the Payment Platform | String up to 255 characters | Y |
hash | Special signature to validate your request to Payment Platform | See Appendix A, GET_TRANS_STATUS signature | Y |
Response parameters
| Parameter | Description |
|---|---|
action | GET_TRANS_STATUS |
result | SUCCESS |
status | DECLINED/SETTLED |
order_id | Order ID in the Merchant's system |
trans_id | Transaction ID in the Payment Platform |
decline_reason | Reason of transaction decline. It shows for the transactions with the “DECLINED” status |