Publish invoice
Turn a draft into a published invoice with an invoice number.
MCP tool bokio_write → publish_invoice
write Confirm
Publishes a draft invoice, which assigns the invoice number and the payment reference and makes it final for the customer. Publishing does not email the invoice; use send_invoice for that. A published invoice is no longer edited like a draft. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_id string required | string | Invoice ID from list_invoices or create_invoice. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "bokio_write",
"arguments": {
"operation": "publish_invoice",
"arguments": {
"invoice_id": "invoice_8c41d2"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"invoice_id": "f2d84b1a-6c30-4e97-8a5b-1d9c7e3a40b2",
"status": "published",
"invoice_number": "2026-1042",
"payment_reference": "2026104242"
},
"isError": false
}