finalize_invoice
Convert a draft invoice to open status so it can be paid. This action is irreversible and optionally triggers automatic payment.
Instructions
Finalizes a draft invoice, transitioning it to 'open' status so it can be paid. This action cannot be undone.
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": "finalize_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | The ID of the draft invoice to finalize (e.g., 'in_123'). | |
| auto_advance | No | If true, the invoice will automatically attempt payment after finalizing. |