Add a client
client_addAdd a new customer to the shop's customer file. All fields are optional: name, surname, email, phone, address, company registration number, VAT number, barcode, private/public comment, blacklist status, birth date, etc. Use data_list_clients to check if the customer already exists first.
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": {
"idempotencyKey": "<idempotencyKey>"
},
"name": "client_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | GPS latitude of the customer address | |
| lng | No | GPS longitude of the customer address | |
| city | No | City | |
| name | No | Customer first name | |
| No | Customer email address | ||
| phone | No | Primary phone number | |
| title | No | Honorific or title (e.g. Mr, Mrs, Company) | |
| VATnum | No | VAT registration number | |
| phone2 | No | Secondary phone number | |
| barcode | No | Customer loyalty card barcode | |
| country | No | Country | |
| surname | No | Customer surname / last name | |
| position | No | Sort order / priority within the customer list | |
| postcode | No | Postal/ZIP code | |
| birthDate | No | Date of birth (YYYY-MM-DD or timestamp) | |
| blacklist | No | 1 to blacklist this customer | |
| activityCode | No | Accounting activity code | |
| addressline1 | No | Street address line 1 | |
| addressline2 | No | Street address line 2 | |
| adressComment | No | Delivery instructions or address comment | |
| clientGroupID | No | ID of the customer group/segment | |
| commentPublic | No | Note visible to the customer | |
| commentPrivate | No | Internal staff-only note | |
| idempotencyKey | Yes | Unique ID for this operation, such as a UUID. After a timeout, retry with the same key and arguments. Use a new key for each distinct operation. | |
| identificationID | No | National ID or passport number | |
| registrationNumber | No | Company registration number (SIRET, etc.) |