Create an invoice
smallinvoice_create_invoiceWRITE: creates a new invoice for a contact. Needs the "invoice" scope. POST /receivables/invoices. It is only created: it is NOT sent by e-mail or post and its status is not changed; the user reviews it in smallinvoice. Not idempotent: calling it twice creates two invoices. Use smallinvoice_list_contacts / smallinvoice_list_units first for the ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| due | Yes | Due date, yyyy-mm-dd. | |
| date | Yes | Invoice date, yyyy-mm-dd. | |
| currency | Yes | ISO currency, e.g. CHF. | |
| language | Yes | Document language: de, en, fr or it. | |
| positions | Yes | The invoice positions. | |
| contact_id | Yes | The contact (customer) id. | |
| contact_address_id | Yes | The id of the contact's address to print (smallinvoice_list_contact_addresses, or main_address_id on the contact). |