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: