create_invoice
Create invoices with custom line items, taxes, and payment details. Specify contact, dates, currency, and references to produce accurate billing documents.
Instructions
Create invoice
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| footer | No | ||
| header | No | ||
| user_id | No | References a [user object](#operation/v3ListUsers) | |
| mwst_type | No | | value | description | |-----|------| | 0 | including taxes | | 1 | excluding taxes | | 2 | exempt from taxes | | |
| positions | No | Please note that you can combine multiple positions. This means that an array containing `KbPositionCustom` and `KbPositionArticle` positions is valid. **Recommendation**: use a maximum of 150 positions when creating sales documents. Other positions can be added using the item creation endpoint. | |
| reference | No | ||
| contact_id | No | References a [contact object](#operation/v2ListContacts) | |
| currency_id | No | References a [currency object](#operation/ListCurrencies) | |
| document_nr | No | Can not be used if “automatic numbering” is activated in frontend-settings. Required if “automatic numbering” deactivated. https://help.bexio.com/s/article/000001784 | |
| is_valid_to | No | ||
| language_id | No | References a [language object](#operation/v2ListLanguages) | |
| mwst_is_net | No | This value affects the total if the field `mwst_type` has been set to 0.<br> `false` = Taxes are included in the total<br> `true` = Taxes will be added to the total | |
| logopaper_id | No | ||
| api_reference | No | This field can only be read and edited by the api. It can be used to save references to other systems. | |
| is_valid_from | No | ||
| pr_project_id | No | References a [project object](#operation/v2ListProjects) | |
| template_slug | No | References a [document template slug](#operation/v3ListDocumentTemplate) | |
| contact_sub_id | No | References a [contact object](#operation/v2ListContacts) | |
| bank_account_id | No | References a [bank account object](#operation/ListBankAccounts) | |
| payment_type_id | No | References a [payment type object](#operation/v2ListPaymentTypes) | |
| show_position_taxes | No | ||
| contact_address_manual | No | This field can be used to set a contact address manually. If not in use or `null` the invoice address of the contact will be taken. |