create_customer
Creates a customer, checks VAT or organisation number against existing records to avoid duplicates, and returns matching accounts unless duplicates are allowed.
Instructions
Create a customer. Checks VAT / org number against every existing customer first and returns the existing account(s) instead, unless allow_duplicate=true. email = the customer's main e-mail address. EU companies: give the VAT number (drives reverse-charge VAT).
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": {
"name": "<name>",
"country_code": "<country_code>"
},
"name": "create_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| name | Yes | ||
| No | |||
| phone | No | ||
| dry_run | No | ||
| address1 | No | ||
| address2 | No | ||
| currency | No | ||
| zip_code | No | ||
| vat_number | No | ||
| country_code | Yes | ||
| extra_fields | No | ||
| customer_type | No | ||
| allow_duplicate | No | ||
| organisation_number | No |