GET
/v1/checkout/:id/statusGet payment status
Returns the current status of a checkout session.
Authentication
Secret Key — send Authorization: Bearer YOUR_KEY header.
Response fields
| Field | Type | Description |
|---|---|---|
status | string | pending | completed | failed | expired |
transaction_id | string | Watenga transaction ID when completed |
merchantTransactionId | string | Your reference |
amount | string | Payment amount |
currency | string | USD or ZWG |
Code examples
bash
curl https://api.watenga.africa/v1/checkout/chk_01HQXYZ/status \
-H "Authorization: Bearer sk_test_YOUR_KEY"Response example
json
{
"success": true,
"data": {
"status": "completed",
"transaction_id": "txn_01HQXYZ",
"merchantTransactionId": "INV-001",
"amount": "25.00",
"currency": "USD"
}
}