Pay an invoice from the wallet
pay_invoicePay one unpaid invoice from the account wallet. THIS SPENDS REAL MONEY: max_amount_minor is the most that may be taken (whole minor units). It takes the smaller of that, what the invoice owes and the wallet balance, so it can be a part payment. Needs a key with invoices:pay and billing:read.
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>",
"max_amount_minor": "<max_amount_minor>",
"request_id": "<request_id>"
},
"name": "pay_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | ||
| request_id | Yes | An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action. | |
| max_amount_minor | Yes |