Finalize Invoice
finalize_invoiceFinalize a draft invoice to move it from draft to open status, enabling payment. Provide the invoice ID and optionally set auto-advance.
Instructions
Finalize a draft invoice so it can be paid. This transitions it from draft to open.
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 | Invoice ID (in_...) | |
| auto_advance | No | Auto-advance to payment after finalization | |
| idempotency_key | No | Optional idempotency key for safe retries |