The Check Status mechanism allows merchants to actively verify the latest status of a payment by querying the Get Payment by ID API. This ensures your system always reflects the most accurate transaction state, even if webhook updates are delayed or missed due to network issues, server downtime, or other technical factors.Documentation Index
Fetch the complete documentation index at: https://docs.monxa.co/llms.txt
Use this file to discover all available pages before exploring further.
Why Implement Check Status?
While Monxa provides real-time notifications via webhooks, relying solely on them may introduce risks:- Webhook Delays – Network or server issues can slow down updates.
- Missed Events – Downtime or connectivity issues may cause webhooks to fail.
How to Implement
Step 1: Call the Get Payment by ID API
Step 1: Call the Get Payment by ID API
Use the following endpoint to retrieve the latest status of a payment:
Replace
| Method | Endpoint |
|---|---|
| GET | https://api.monxa.co/v1/payments/{id} |
{id} with the payment_id you want to check.Step 2: Handle the API Response
Step 2: Handle the API Response
The API response will include key transaction details.
Most importantly, the
Your system should use this value to update the order or payment status accordingly.Example Response:
Most importantly, the
status parameter indicates the current state of the payment.Your system should use this value to update the order or payment status accordingly.Example Response: