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.
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 |