Update customer
update_customerChanges the fields of a customer of a company. Only the given fields change; a nested object (address, electronic_address, contact) changes only its given keys. Open documents of the customer keep their other customer data (sync_drafts_from_customer copies it to them); a changed electronic_address is written to them at once.
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>",
"customer_id": "<customer_id>"
},
"name": "update_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The name of the customer as printed on documents (one line). | |
| type | No | 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; only the given keys change, null removes it. | |
| contact | No | The contact data of the customer; only the given keys change, null removes it. | |
| 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. | |
| customer_id | Yes | The id of the customer, from list_customers. | |
| 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); only the given keys change, null removes it. | |
| registration_number | No | The company registration number, digits only; null clears it. |