Book invoice

Book a draft invoice, and optionally send it by email or EAN.

MCP tool e_conomic_write → book_invoice

write Confirm

Books the draft, which gives it an invoice number, and a booked invoice cannot be edited any more. With send_by email or ean, the invoice is sent to the customer after booking, and only if booking succeeds. Without it nothing is sent. An EAN invoice needs your CVR and country in master data and a recipient identifier on the customer. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: book_invoice
NameTypeDescription
draft_invoice_number integer required integer Draft invoice number from list_draft_invoices or create_draft_invoice.
send_by string string none, email or ean. Default: none.
book_with_number integer integer Own invoice number. Default: next number in the sequence.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "e_conomic_write",
    "arguments": {
      "operation": "book_invoice",
      "arguments": {
        "draft_invoice_number": 118,
        "send_by": "email"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "invoice_number": 1042,
    "draft_invoice_number": 118,
    "customer_number": 14,
    "total_gross": 1500,
    "currency": "DKK",
    "sent_by": "email",
    "status": "booked"
  },
  "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.