Close menu
Explore Plans
Mobile menu Close menu
WooCommerce

Create customer

This action will create a new customer in your WooCommerce store.

Developer info

API endpoint slug
woocommerce.create_customer
Filter code method
Woocommerce.createCustomer.skip(string?: reason)
Runtime method
runAction("woocommerce.create_customer", {})

Action fields

Email Text input > Other

Label
Email address
Helper text
The email address for the new customer
Slug
email
Required
true
Can have default value
true
Filter code method
Woocommerce.createCustomer.setEmail(string: email)

First name Text input > Other

Label
First Name
Helper text
The customer's first name
Slug
first_name
Required
false
Can have default value
true
Filter code method
Woocommerce.createCustomer.setFirstName(string: first_name)

Last name Text input > Other

Label
Last Name
Helper text
The customer's last name
Slug
last_name
Required
false
Can have default value
true
Filter code method
Woocommerce.createCustomer.setLastName(string: last_name)

Username Text input > Other

Label
Username
Helper text
Login username for the customer (optional)
Slug
username
Required
false
Can have default value
true
Filter code method
Woocommerce.createCustomer.setUsername(string: username)

Billing phone Text input > Other

Label
Billing Phone
Helper text
The customer's billing phone number
Slug
billing_phone
Required
false
Can have default value
true
Filter code method
Woocommerce.createCustomer.setBillingPhone(string: billing_phone)

Billing company Text input > Other

Label
Company
Helper text
The customer's company name
Slug
billing_company
Required
false
Can have default value
true
Filter code method
Woocommerce.createCustomer.setBillingCompany(string: billing_company)

Billing address 1 Text input > Other

Label
Street Address
Helper text
Street address (line 1)
Slug
billing_address_1
Required
false
Can have default value
true
Filter code method
Woocommerce.createCustomer.setBillingAddress1(string: billing_address_1)

Billing city Text input > Other

Label
City
Helper text
City name
Slug
billing_city
Required
false
Can have default value
true
Filter code method
Woocommerce.createCustomer.setBillingCity(string: billing_city)

Billing state Text input > Other

Label
State
Helper text
State or province (ISO code)
Slug
billing_state
Required
false
Can have default value
true
Filter code method
Woocommerce.createCustomer.setBillingState(string: billing_state)

Billing country Text input > Other

Label
Country
Helper text
Country (ISO code, e.g. US)
Slug
billing_country
Required
false
Can have default value
true
Filter code method
Woocommerce.createCustomer.setBillingCountry(string: billing_country)

Billing postcode Text input > Other

Label
Postal Code
Helper text
Postal or ZIP code
Slug
billing_postcode
Required
false
Can have default value
true
Filter code method
Woocommerce.createCustomer.setBillingPostcode(string: billing_postcode)