Invoices: Undo payment
invoice_undo_paymentUndo a payment recorded by mistake: reverses the last payment the person recorded on this invoice through the chat or MCP (invoice_mark_paid) within the last 10 minutes — the paid amount and status go back (Sent if it had been sent, else Open) and any ledger entry is offset. Older payments, and payments recorded in the cabinet, are reversed in the cabinet. Runs propose→confirm. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": "<invoice>"
},
"name": "invoice_undo_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | The invoice's number as the person said it (INV-12, 12) or its id. |