GET/v1/payment/token/:token
Retrieve the details and current state of a payment token.
When to use this
The hosted page at pay.kawrie.com calls this endpoint to render the amount and status before the customer pays, and you can call it yourself to check whether a token is still active before showing it to someone. It needs no API key since a token is already a bearer credential for that one specific charge.
- Rendering a custom payment page instead of the hosted pay.kawrie.com page
- Checking whether a shared invoice link has already been paid or has expired
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
| token | string | Required | The payment token to look up |
Request example
curl https://api.kawrie.com/v1/payment/token/pt_9f2h1k3a8b7cResponse200 OK
{
"success": true,
"data": {
"token": "pt_9f2h1k3a8b7c",
"status": "active",
"amount": 15000,
"currency": "UGX",
"expires_at": "2026-06-28T11:30:00.000Z"
}
}Error responses
| Code | Status | Description |
|---|---|---|
| TOKEN_NOT_FOUND | 404 | No payment token exists with that identifier |