Skip to content

Get Payment Status

GET /api/payments/{invoice_id}/status

Verify a payment server-to-server and get its real status. This endpoint also triggers fulfillment if the payment completed but has not been credited yet (both the webhook and the success redirect missed it).

Terminal window
curl -X GET https://api.awajdigital.com/api/payments/9f8b7c6d-.../status \
-H "Authorization: Bearer your_api_token_here" \
-H "Accept: application/json"
{
"success": true,
"invoice_id": "9f8b7c6d-...",
"status": "completed",
"amount": 500
}
status Meaning
completed Payment confirmed and balance credited
anything else Payment not completed (pending/failed)
Status Description
401 Missing or invalid access token
403 Payment API not enabled for your account
404 Payment not found or not owned by your account
502 Gateway error — payment could not be verified