expire_usdt_invoice
Cancel and expire an unpaid pending PayGate invoice by invoice_id so it can no longer be settled. Idempotent state-changing operation: transitions pending invoices to expired while leaving already-paid invoices untouched (unlimited free calls). Returns JSON with ok (boolean) and the updated invoice object (status: "expired").
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": {
"invoice_id": "<invoice_id>"
},
"name": "expire_usdt_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | Unique PayGate invoice identifier (`inv_...`) to cancel/expire. | |
| merchant_wallet | No | Optional merchant wallet address (`0x...` or Solana base58) to verify ownership before expiring the invoice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| invoice | No |