Pennylane: Create a customer invoice
pennylane_create_customer_invoicePennylane: Create an invoice for a customer, as a draft by default. Creates an invoice with one or more lines and returns its invoice_id and amounts. Draft defaults to true and keeps the invoice editable; with draft set to false Pennylane finalizes it at once and it can no longer be edited. Amounts are strings, and the call fails when the totals do not add up or the VAT rate is not one Pennylane accepts. Without a ledger account on a line, Pennylane applies the company's default mapping. Set external_reference so a repeated run finds the invoice instead of creating it twice. A draft reaches nobody; a final invoice is a legal document. By default you confirm each call; you can switch that off for this tool. Reaches other people: confirm with the user before each call. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Invoice date. | |
| draft | No | true keeps the invoice a draft, false finalizes it. Default: true. | |
| lines | Yes | Invoice lines. Each has label, quantity, unit, unit_price as a string and vat_rate in percent. | |
| deadline | Yes | Payment due date. | |
| customer_id | Yes | Customer ID from list_customers or create_customer. | |
| external_reference | No | Your own reference, e.g. 2026-10-atelier-lumen. Use it to avoid duplicates. |