Alegra: Create invoice
alegra_create_invoiceAlegra: Create a sales invoice for a contact as a draft or an open invoice. Creates a sales invoice with one or more lines and returns its ID, number, totals and status. With status draft nothing is issued and the invoice can still be edited in Alegra. With status open the invoice is saved as open, and with generate_stamp true Alegra also tries to stamp it with your tax authority; if stamping fails, the invoice stays a draft and the error is returned. The invoice is not emailed: use email_invoice for that. If you give no number_template_id, Alegra uses your preferred numbering. 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, YYYY-MM-DD. | |
| items | Yes | Lines of the invoice. Each line has item_id from list_items, quantity and price, plus optional discount in percent without the % sign and tax_ids. | |
| status | No | draft or open. Default: draft when nothing is paid. | |
| due_date | Yes | Due date, YYYY-MM-DD. | |
| contact_id | Yes | Client contact ID from list_contacts. | |
| generate_stamp | No | true asks Alegra to stamp the invoice with your tax authority where your country requires it. Default: false. | |
| number_template_id | No | Numbering to use. Default: your preferred numbering. |