Finalize an invoice
finalize_invoiceFinalize a draft invoice to assign its number, lock amounts, and create a payable hosted page; zero-total or past-due invoices cannot be finalized.
Instructions
Finalize an invoice.
Finalize a draft invoice: it gets its number, the amounts are frozen, and hosted_invoice_url becomes a payable page to send to your customer. A zero total or a past due date can’t be finalized.
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": {
"id": "<id>"
},
"name": "finalize_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The invoice id (`inv_…`). |