e-conomic automation · runs weekly
Book and send e-conomic draft invoices
Drafts pile up through the week, and on Friday someone has to open each one, check it, book it and send it before the customer's payment term starts running.
Cotlet does it in your own e-conomic account with list_draft_invoices and book_invoice, called by your AI agent, an n8n workflow or a script.
Hosted · nothing to install or maintain
Can e-conomic do this on its own?
e-conomic supports this through the REST API only (checked 14 Oct 2026). POST /invoices/booked takes the draft and an optional sendBy of none, Email or EAN, and sends the invoice only if booking succeeds. The support article says sending sales documents works only through the API. There is no MCP server.
How you do it in e-conomic today
- Each draft is opened, checked for customer, date and lines, and then booked, which gives it its invoice number.
- After booking, the invoice is sent to the customer, by email or as an electronic invoice.
- A booked invoice cannot be edited, so a mistake found after booking is more work than one found before.
- The check is the same for every draft, and a draft with a missing line is easy to miss in a long list.
How to book and send e-conomic draft invoices
List my draft invoices in e-conomic. For each draft that has a customer, lines and a date this month, book it and send it by email. Leave drafts with a missing line or a zero total for me. - 01
Read every draft first
The agent lists all drafts and checks each for a customer, at least one line, a non-zero total and a date in the period you named. A draft that fails any check is skipped and listed with the reason.
- 02
Check the delivery route
For email, the customer needs an email address on the draft. For EAN, the customer needs a recipient identifier and your master data needs your CVR and country. A draft without them is not booked, because a booked invoice cannot be edited.
- 03
Book one at a time
book_invoice runs for one draft and the agent waits for the booked number before the next. You see each draft, its total and its route before each call, until you switch confirmation off.
- 04
Stop on the first error
If booking fails, the agent stops the run instead of retrying, because a retry could book a draft that was half processed. It then reports what was booked and what was not.
What you get back
Drafts found: 5
Booked and sent by email: 3 (1042 Nordlys ApS, 1043 Havn Design, 1044 Fjord Studio)
Left for you: 2
- Draft 121: no lines
- Draft 122: no email address for Birk & Co
All booked invoices in DKK, total gross DKK 8,125.00 Other ways to ask
- Book all drafts for customers with an EAN number and send them as electronic invoices, skip the rest.
- Book the drafts but do not send anything, I will send them myself.
- Show me which drafts would fail the checks, and book nothing.
What e-conomic allows, and what to know first
- POST /invoices/booked wraps the draft in a draftInvoice object and may set bookWithNumber; without it the next number in the sequence is used.
- sendBy accepts none, Email and EAN, and without it the invoice is not sent.
- An electronic invoice needs your CVR and country in master data, a valid recipient identifier on the customer and at least one product line.
- A booked invoice cannot be edited, so book_invoice is the step where you confirm.
book_invoice asks for your OK by default. To run it weekly without you, switch confirmation off for that tool in your dashboard.
Sources: e-conomic support: booking and sending sales invoices through the API · e-conomic REST API documentation · e-conomic TechTalk: new functionality in invoices
Call book_invoice from a script
curl -X POST https://cotlet.dev/api/v1/e-conomic/draft-invoices/118/invoices \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"send_by":"email"}' {
"invoice_number": 1042,
"draft_invoice_number": 118,
"customer_number": 14,
"total_gross": 1500,
"currency": "DKK",
"sent_by": "email",
"status": "booked"
} MCP: add https://cotlet.dev/mcp/v1 with the same key; the call is e_conomic_write → book_invoice. Example data.
Schedule it in n8n, Make, Zapier or crone-conomic tools this automation uses
| Tool | Parameters |
|---|---|
| list_draft_invoices | customer_number, limit, cursor |
| book_invoice | draft_invoice_number, send_by, book_with_number |
Frequently asked questions
Is it safe to connect e-conomic to Cotlet?
Yes. You sign in to e-conomic yourself, in your own Cloud Browser in the EU, and we never save your password. Your agents only get e-conomic once you enable it, every background request is listed, and the browser profile is stored encrypted with AES-256-GCM, the cipher 1Password uses for its vaults. The AI model never sees a login, posts and messages wait for your OK, and Disable for agents cuts access in one click. Independent scanners grade cotlet.dev A+ on Qualys SSL Labs, securityheaders.com and Mozilla Observatory; live results are on https://cotlet.dev/security.
Give your agent access to e-conomic.
Free 7-day trial with 2,000 credits, no card needed. Cotlet is independent and not affiliated with e-conomic.