Create WooCommerce Customer
woocommerce_create_customerCreate a new registered customer account in WooCommerce. Provide a unique email address; optional fields include name, username, password, and billing/shipping addresses.
Instructions
Create a new registered customer account.
Args:
email (string, required): must be unique
first_name / last_name (string, optional)
username / password (string, optional): auto-generated if omitted
billing / shipping (object, optional): address fields
response_format ('markdown'|'json'): default 'markdown'
Returns: The newly created customer object with its assigned ID.
Error Handling:
Returns "Error: Bad request (400)" if the email or username is already registered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Customer email address, must be unique | ||
| billing | No | ||
| password | No | Login password; a random one is generated if omitted | |
| shipping | No | ||
| username | No | Login username; generated from email if omitted | |
| last_name | No | ||
| first_name | No | ||
| response_format | No | Output format: 'markdown' for human-readable text or 'json' for machine-readable structured data | markdown |