list_customers
Search and filter customers by name, email, or role, and retrieve each customer's order count and total spent. Use the fields parameter to request only necessary data.
Instructions
Search and filter customers by name, email, or role. Returns order count and total spent per customer. Use fields param to request only needed fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| role | No | Filter by role | |
| order | No | Sort direction | |
| fields | No | Comma-separated fields to return (default: id,email,first_name,last_name,username,billing,orders_count,total_spent) | |
| search | No | Search term (name, email) | |
| orderby | No | Sort field | |
| per_page | No | Items per page (max 100) |