create_abaninja_invoice
Create an invoice in AbaNinja as a DRAFT. It is not sent — sending, dunning and cancelling are deliberately not exposed here; do those in AbaNinja. Requires customer_uuid and at least one position (title + single_price). The total is computed by AbaNinja via its own /calculate endpoint and that figure is what gets submitted — this tool does no VAT or rounding arithmetic of its own, because a self-computed total that is one rappen out is a wrong document. Payment instructions come from the tenant's default bank account unless bank_account_uuid is given.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customer_uuid": "<customer_uuid>",
"positions": "<positions>"
},
"name": "create_abaninja_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | invoiceDate, YYYY-MM-DD. Defaults to today. | |
| title | No | Title of the AbaNinja invoice | |
| currency | No | Currency code (ISO 4217, e.g. EUR) | CHF |
| positions | Yes | Line items. Each needs title and single_price; quantity defaults to 1. | |
| reference | No | Reference text of the invoice | |
| person_uuid | No | For a company: the contact person inside it. For a private person: that person, if it differs from customer_uuid. | |
| second_date | No | dueDate, YYYY-MM-DD. | |
| address_uuid | No | Overrides the customer's primary address, e.g. for a second location. | |
| public_notes | No | Notes printed on the invoice | |
| customer_uuid | Yes | AbaNinja customer uuid from get_abaninja_customer — a company OR a private person. Which of the two it is is looked up, not asked, and so is the customer's address: AbaNinja requires an address uuid next to the customer uuid. | |
| customer_number | No | Only used as a fallback when no address can be found for the customer — AbaNinja then accepts the customer number on its own. | |
| bank_account_uuid | No | Defaults to the account marked default. | |
| payment_reference | No | Payment reference for the payment instructions | |
| prices_include_vat | No | Whether position prices include VAT (default false) |