get https://staging.eko.in/payment-collection/api/v1/token/enquiry
tx_status | description |
---|---|
0 | Success/Paid |
1 | Fail |
2 | Initiated/Unpaid |
3 | Refund Pending |
4 | Refunded |
10 | Expired |
11 | Cancelled |
Parameters
Either client_ref_id or the token is required for doing the transaction enquiry
Thigs to consider
Token Inquiry API
Token inquiry should be called after 5 minutes of the token generation
- If you receive HTTP status code in the range of 400 to 499, than don't take any action and check the request.
- If you receive HTTP status code in the range of 500 to 599, check your request and keep doing the enquiry till you receive a HTTP status code 200.
- If the HTTP status code is 200 than please mark the transaction according to the values of tx_status parameter.
- In case of Token not found/ Invalid client_ref_id response code 635 and 636 , you can mark the token as fail at your end.