create_abaninja_customer
Create a customer in AbaNinja. Either a company (name required) or a person (first_name + last_name). Optional: customer_number, vat_number, currency_code, language, payment_terms, and an address (street, zip, city, country_code). Returns the created record including its uuid. Does NOT check for duplicates first — run compare_customers or get_abaninja_customer if you might already have this customer, because AbaNinja will happily store the same firm twice.
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_abaninja_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip | No | Postal code | |
| city | No | City | |
| name | No | Company name — required for type=company. | |
| type | No | company (default, name required) or person (first_name + last_name) | company |
| No | Email address | ||
| phone | No | Phone number | |
| state | No | Canton, e.g. ZH. Optional for Swiss addresses — derived from the zip when omitted. | |
| street | No | Street and house number | |
| language | No | e.g. de | |
| last_name | No | Last name | |
| first_name | No | First name | |
| vat_number | No | VAT ID number | |
| country_code | No | e.g. CH (default CH for a 4-digit zip) | |
| currency_code | No | e.g. CHF | |
| payment_terms | No | Days; AbaNinja accepts -1, 7, 10, 14, 15, 20, 30, 60, 90. | |
| customer_number | No | Customer number to assign in AbaNinja |