Pay Invoice
pay_invoiceAttempt to pay an open invoice using the default payment method, or specify a payment method to use.
Instructions
Attempt to pay an open invoice using the default payment method.
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": "pay_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | Invoice ID (in_...) | |
| payment_method | No | Specific payment method to use | |
| idempotency_key | No | Optional idempotency key for safe retries |