Create customer
create_customerCreates a customer in a company and returns it with its id.
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": {
"company_id": "<company_id>",
"type": "<type>",
"name": "<name>"
},
"name": "create_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the customer as printed on documents (one line). | |
| type | Yes | LEGAL for a company, NATURAL for a person. | |
| notes | No | Notes about the customer; null clears them. | |
| vat_id | No | The VAT ID with its country prefix, e.g. DE123456789; it must be registered in the EU VIES database (checked on save); null clears it. | |
| address | No | The address of the customer. | |
| contact | No | The contact data of the customer. | |
| company_id | Yes | The id of the company, from list_companies. | |
| tax_number | No | The tax number of the customer, digits only; null clears it. | |
| payment_terms | No | The payment terms printed on the documents of the customer; null clears them. | |
| buyer_reference | No | The buyer reference required by the customer on e-invoices (one line); null clears it. | |
| electronic_address | No | The electronic address where the customer receives e-invoices (Peppol / KSeF). | |
| registration_number | No | The company registration number, digits only; null clears it. |