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

Parameters: publish_invoice
NameTypeDescription
invoice_id string required string Invoice ID from list_invoices or create_invoice.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "bokio_write",
    "arguments": {
      "operation": "publish_invoice",
      "arguments": {
        "invoice_id": "invoice_8c41d2"
      }
    }
  }
}

Example response

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.