Skip to content

Customers

The Customers pull reads the store's registered customers, for a customer or contact record in the target system. Each customer carries the billing and shipping addresses saved on the account.

On a reader, select Customers as the WooCommerce Entity.

Which Customers It Reads

The pull reads every WordPress user with the Customer role, on every run, ten to a request. It keeps no date of its last run, and the reader's Status and Orders created in the last options have no effect.

  • Guest orders have no customer. A shopper who checks out without an account appears only on the order, in its billing_ and shipping_ fields.
  • Other roles are left out. A user with another role, such as an administrator or a shop manager, does not appear, even after placing an order.

Match each customer in the target system on its WooCommerce id or its email, and update rather than create. Every run brings in every customer again.

Records

The pull returns one Customer record for each customer:

  • id, WooCommerce's id for the customer;
  • email, first_name, last_name, username and role;
  • is_paying_customer, True once the customer has paid for an order;
  • the billing_ address fields, with billing_email and billing_phone;
  • the shipping_ address fields;
  • date_created and date_modified, in the store's time zone, each with a _gmt field in UTC beside it;
  • avatar_url.

password is always empty. WooCommerce never returns a password.

Meta Data

Each key in the reader's Customer/Order Meta Fields option becomes a field of the same name, holding the value of the customer's first meta data entry with that key. See Meta Data on the Orders page.

WooCommerce Reference

Customers in the WooCommerce REST API documentation.