Skip to content

WooCommerce - Create Customer

This module allows creating customers in your WooCommerce store with contact information, billing and shipping addresses.

FieldTypeRequiredDescription
credentials_idstringYesCredentials ID
emailstringYesCustomer email
first_namestringNoFirst name
last_namestringNoLast name
usernamestringNoUsername
passwordstringNoPassword
phonestringNoPhone
billing_address_1stringNoBilling address
billing_address_2stringNoAddress line 2
billing_citystringNoCity
billing_statestringNoState/Province
billing_postcodestringNoPostal code
billing_countrystringNoCountry (ISO code)
billing_companystringNoCompany
shipping_address_1stringNoShipping address
shipping_citystringNoShipping city
shipping_statestringNoShipping state
shipping_postcodestringNoShipping postal code
shipping_countrystringNoShipping country
FieldDescriptionExample
urlWooCommerce store base URLhttps://my-store.com
consumer_keyREST API Consumer Keyck_xxxx...
consumer_secretREST API Consumer Secretcs_xxxx...

The API Key must have Read/Write permissions.

{
"success": true,
"customer": {},
"customer_id": 123,
"message": "Customer \"cliente@ejemplo.com\" created successfully"
}
{
"credentials_id": "woo_tienda",
"email": "nuevo@cliente.com",
"first_name": "Juan",
"last_name": "Garcia"
}
{
"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"
}
{
"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
  • WooGetCustomers - Get existing customers
  • WooUpdateCustomer - Update customer data
  • WooGetOrders - Get customer orders