Get Status Of Transaction
We highly recommend that when you receive a notification from us, even after checking to ensure the hash values match, you should initiate a get transaction status request to us with either the paymentReference or transactionReference to confirm the actual status of that transaction before updating the records on your database.Â
This endpoint is protected with OAuth 2.0 Bearer token. To find out more about authorization for Monnify endpoints, check Here
Endpoint URL: {{base_url}}/api/v2/merchant/transactions/query
HTTP Method: GET
The {{base_url}} for test is https://sandbox.monnify.com
but when you go live, it changes to the live url
You can get the transaction status with a simple GET request to the get status endpoint and simply add either of the following query params in the table below
Request | |
---|---|
Field | Description |
paymentReference | Unique reference generated by the merchant for each transaction. |
transactionReference | Unique transaction reference generated by Monnify for each transaction |
Here is a sample request and response
Get Transaction Status Request
Request Headers
Authorization:"Basic TUtfUFJPRF9XV0RYRktCN1paOkVUOVJMU1dESjNEN1FYRE44UUNSTVlSTlBCM1czRUFL"
Request URL
GET https://sandbox.monnify.com/api/v2/merchant/transactions/query?paymentReference=reference12345
Or
GET https://sandbox.monnify.com/api/v2/merchant/transactions/query?transactionReference=MNFY|20190809123429|000000
Get Transaction Status Response
Likely responses include: PAID, OVERPAID, PARTIALLY_PAID, PENDING, ABANDONED, CANCELLED, FAILED, REVERSED, EXPIRED.
Success response
Pending Response
Expired Response
Failed Response