Get WooCommerce Customer
woocommerce_get_customerRetrieve complete customer details including billing/shipping addresses, order count, and lifetime spend by providing a customer ID.
Instructions
Retrieve full details for a single customer, including billing/shipping addresses, order count, and lifetime spend.
Args:
customer_id (number, required)
response_format ('markdown'|'json'): default 'markdown'
Returns: Full 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_get_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes | The numeric WooCommerce customer ID | |
| response_format | No | Output format: 'markdown' for human-readable text or 'json' for machine-readable structured data | markdown |