WooCommerce - Create Customer
Description
Section titled “Description”This module allows creating customers in your WooCommerce store with contact information, billing and shipping addresses.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
credentials_id | string | Yes | Credentials ID |
email | string | Yes | Customer email |
first_name | string | No | First name |
last_name | string | No | Last name |
username | string | No | Username |
password | string | No | Password |
phone | string | No | Phone |
billing_address_1 | string | No | Billing address |
billing_address_2 | string | No | Address line 2 |
billing_city | string | No | City |
billing_state | string | No | State/Province |
billing_postcode | string | No | Postal code |
billing_country | string | No | Country (ISO code) |
billing_company | string | No | Company |
shipping_address_1 | string | No | Shipping address |
shipping_city | string | No | Shipping city |
shipping_state | string | No | Shipping state |
shipping_postcode | string | No | Shipping postal code |
shipping_country | string | No | Shipping country |
Credentials
Section titled “Credentials”| Field | Description | Example |
|---|---|---|
url | WooCommerce store base URL | https://my-store.com |
consumer_key | REST API Consumer Key | ck_xxxx... |
consumer_secret | REST API Consumer Secret | cs_xxxx... |
The API Key must have Read/Write permissions.
Output
Section titled “Output”{ "success": true, "customer": {}, "customer_id": 123, "message": "Customer \"cliente@ejemplo.com\" created successfully"}Usage Example
Section titled “Usage Example”Basic customer
Section titled “Basic customer”{ "credentials_id": "woo_tienda", "email": "nuevo@cliente.com", "first_name": "Juan", "last_name": "Garcia"}Customer with full address
Section titled “Customer with full address”{ "credentials_id": "woo_tienda", "email": "cliente@ejemplo.com", "first_name": "Maria", "last_name": "Lopez", "phone": "+34600123456", "billing_address_1": "Calle Mayor 123", "billing_city": "Madrid", "billing_state": "MD", "billing_postcode": "28001", "billing_country": "ES"}Customer with account
Section titled “Customer with account”{ "credentials_id": "woo_tienda", "email": "usuario@ejemplo.com", "first_name": "Pedro", "last_name": "Martinez", "username": "pmartinez", "password": "SecurePass123!"}- The email is required and must be unique
- If you don’t specify
username, it is generated from the email - If you don’t specify
password, it is generated automatically - Country codes must be ISO 3166-1 alpha-2
- States/provinces must match WooCommerce’s
Related Nodes
Section titled “Related Nodes”- WooGetCustomers - Get existing customers
- WooUpdateCustomer - Update customer data
- WooGetOrders - Get customer orders