Update WooCommerce Customer
woocommerce_update_customerUpdate an existing WooCommerce customer's fields such as email, name, or addresses. Only supplied fields are changed, preserving other data.
Instructions
Update fields on an existing customer. Only supplied fields are changed.
Args:
customer_id (number, required)
Any subset of: email, first_name, last_name, billing, shipping
response_format ('markdown'|'json'): default 'markdown'
Returns: The updated customer object.
Error Handling:
Returns "Error: Resource not found (404)" if customer_id doesn't exist.
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": {
"customer_id": "<customer_id>"
},
"name": "woocommerce_update_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| billing | No | ||
| shipping | No | ||
| last_name | No | ||
| first_name | No | ||
| customer_id | Yes | The numeric WooCommerce customer ID to update | |
| response_format | No | Output format: 'markdown' for human-readable text or 'json' for machine-readable structured data | markdown |