update_customer
Update customer details like name, email, phones, or address by ID or external ID, sending only the fields you provide for a targeted edit.
Instructions
Edit an existing customer (name, email, phones, address) by id or externalId. Only the fields you pass are sent. Returns {success}.
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": {
"id": "<id>"
},
"name": "update_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Lookup field | id |
| id | Yes | Customer ID or externalId to edit | |
| site | No | Site (store) symbolic code. Required on create/edit when the API key is scoped to multiple sites (see list_sites). | |
| No | Updated email | ||
| phones | No | Replace phone numbers | |
| last_name | No | Updated last name | |
| first_name | No | Updated first name | |
| patronymic | No | Updated patronymic | |
| address_city | No | Updated city | |
| address_text | No | Updated full address text | |
| address_region | No | Updated region/state |