update_customer
Edit an existing customer's details such as name, email, phone, and address using ID or externalId. Only specified fields are updated and returns success.
Instructions
Edit an existing customer (name, email, phones, address) by id or externalId. Only the fields you pass are sent. Returns {success}.
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 |