e-conomic: Create draft invoice
e-conomic_create_draft_invoicee-conomic: Create a draft invoice for a customer with lines. The draft is not booked. Creates a draft with the customer, date, currency, payment terms, layout and lines. The recipient name and VAT zone are copied from the customer. The draft stays editable and is not booked, so it reaches no one and runs without asking first. Lines take a product number or a free text with quantity and unit price. Returns the draft number and net, VAT and gross totals. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Invoice date, YYYY-MM-DD. | |
| lines | Yes | Lines: product_number (optional), description, quantity, unit_price. | |
| currency | Yes | Currency code, e.g. DKK. | |
| layout_number | Yes | Layout number for the invoice. | |
| customer_number | Yes | Customer number from list_customers or create_customer. | |
| payment_terms_number | Yes | Payment terms number from the customer. |