Skip to content

Get Payment Status

GET /api/payments/{invoice_id}/status

Verify a payment server-to-server and get its real status. If the payment was paid but not credited yet, this call credits it (never twice).

It asks the payment gateway each time, so it usually answers within a second or two but can take up to about a minute when the gateway is slow — set your HTTP client’s timeout to at least 70 seconds.

Terminal window
curl -X GET https://api.awajdigital.com/api/payments/17941438309537516/status \
-H "Authorization: Bearer your_api_token_here" \
-H "Accept: application/json"
{
"success": true,
"invoice_id": "17941438309537516",
"status": "completed",
"amount": 500
}
status Meaning
completed Payment confirmed and balance credited
pending Not paid (yet) — still open, failed or cancelled
unknown Only for payments made before November 2026 that were never completed
Status Description
401 Missing or invalid access token
404 Payment not found or not owned by your account
502 Could not reach the payment gateway — try again