Get a payment
get_paymentRead a single payment by ID to retrieve status, amounts, expiry, and late-payment details for KHQR transaction checks; use webhooks for follow-up instead of polling.
Instructions
Reads one payment by its id: status (pending, scanned, paid, expired or failed), amounts, expiry, and whether it was paid late. Each call counts toward the account's daily read allowance, so read when you need the answer and never poll in a loop; application code should follow payments with webhooks.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "get_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The payment's id. |