Create customer
create_customerCreates a customer record from a company name and, optionally, an address, VAT ID and email. Use it to store a client before their first invoice. The company name is unique in the account, compared exactly after trimming: a call with a name already in use is rejected and adds nothing, so repeating a call that succeeded leaves no duplicate. A DATEV debtor number is assigned automatically, the next one after the highest in use, and cannot be chosen. The VAT ID is stored as given, without a format check. It creates no invoice. create_invoice does not need this tool first: it takes the recipient details as fields and creates the customer record itself when none exists under that name. It does not email anyone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City | |
| No | Email address invoices for this customer go to | ||
| state | No | State or region | |
| vatId | No | VAT ID (e.g. DE123456789), stored as given | |
| street | No | Street and house number | |
| country | No | Country ISO code (e.g. DE, US) | |
| postalCode | No | Postal code | |
| companyName | Yes | Company or person name, unique in the account | |
| addressLine2 | No | Second address line |