Update a customer's details
update_customerUse this when someone asks to change a customer's name, email, phone, tax id, address or language. Returns the customer's id, name, business and which fields changed; contact details, tax ids and addresses are never returned. Not for adding a new customer.
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": {
"customerId": "<customerId>",
"expectedLastEditTime": "<expectedLastEditTime>"
},
"name": "update_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New full or company name. | |
| No | New email address for their invoices. | ||
| phone | No | New mobile number, with the country code when known. | |
| taxId | No | New tax or VAT number. | |
| address | No | Billing address lines to change. Lines left out keep their stored value. | |
| language | No | New language for their invoices and messages, as a code such as en or it. | |
| customerId | Yes | Customer id: 24 lowercase hexadecimal characters. | |
| legalEntity | No | What kind of customer this is. | |
| expectedLastEditTime | Yes | The customer's lastEditTime as last read; a customer changed since then is refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| customer | Yes | ||
| changedFields | Yes |