Customers


Overview

The customers methods API allows you to retrieve an individual result or a batch of results.


List all customers

Returns customers back from WooCommerce, include parementers to query data.

getCustomers()

Parameters

int page,
int perPage,
String search,
List<int> exclude,
List<int> include,
int offset,
String order,
String orderBy,
bool hideEmpty,
int parent,
int product,
String email,
String slug,
String role

API Call

// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};

// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {

    wcStore.getCustomers().then( (customers) {
        print(customers);
    });

});

Response

List<Customer> instance

Represents the following object - WooCommerce list all customers