Skip to navigation

List Customers

Deprecated

Returns a list of all Customers. Default sorting is by customer_ID, from lowest to highest. Optional parameters can be passed in.

Authentication

X-Auth-Tokenstring

OAuth scopes

UI NamePermissionParameter
Customersmodifystore_v2_customers
Customersread-onlystore_v2_customers_read_only

Authentication header

HeaderArgumentDescription
X-Auth-Tokenaccess_tokenFor more about API accounts that generate access_tokens, see our Guide to API Accounts.

Further reading

For example requests and more information about authenticating BigCommerce APIs, see Authentication and Example Requests.

For more about BigCommerce OAuth scopes, see our Guide to API Accounts.

For a list of API status codes, see API Status Codes.

Path parameters

store_hashstringRequired
Permanent ID of the BigCommerce store.

Headers

AcceptstringRequiredDefaults to application/json

The MIME type of the response body.

Query parameters

first_namestringOptional
Filter customers by first name.
last_namestringOptional
Filter customers by last name.
companystringOptional
Filter customers by company name.
emailstringOptional
Filter customers by email address.
phonestringOptional
Filter customers by phone number.
store_creditstringOptional
Filter customers by store credit amount.
customer_group_idintegerOptional
Filter customers by customer group ID.
min_idintegerOptional
Filter results to those with an ID greater than or equal to this value.
max_idintegerOptional
Filter results to those with an ID less than or equal to this value.
min_date_createdstringOptional
Filter results to those created on or after this date.
max_date_createdstringOptional
Filter results to those created on or before this date.
min_date_modifiedstringOptional
Filter results to those modified on or after this date.
max_date_modifiedstringOptional
Filter results to those modified on or before this date.
tax_exempt_categorystringOptional
Filter customers by tax exempt category code.

Response

OK
emailstring
Email address of the customer.
first_namestring
First name of the customer.
last_namestring
Last name of the customer.
_authenticationobjectOptional

Not returned in any responses, but accepts up to two fields allowing you to set the customer’s password. If a password is not supplied, it is generated automatically. For further information about using this object, please see the Customers resource documentation.

accepts_marketingbooleanOptionalRead-only

Describes whether the customer accepts product review emails or abandon cart emails. Read-Only.

addressesobjectOptional
companystringOptional
The name of the company for which the customer works.
customer_group_idintegerOptional
The group to which the customer belongs.
date_createdstringOptionalRead-only

Date on which the customer registered from the storefront or was created in the control panel. This is a Read-Only field; do not set or modify its value in a POST or PUT request.

date_modifiedstringOptionalRead-only

Date on which the customer updated their details in the storefront or was updated in the control panel. This is a Read-Only field; do not set or modify its value in a POST or PUT request.

form_fieldslist of objects or nullOptionalRead-only

Array of custom fields. This is a Read-Only field; do not set or modify its value in a POST or PUT request.

idintegerOptionalRead-only

Unique numeric ID of this customer. This is a Read-Only field; do not set or modify its value in a POST or PUT request.

notesstringOptional

Store-owner notes on the customer.

phonestringOptional
Phone number of the customer.
registration_ip_addressstringOptional

The customer’s IP address when they signed up.

reset_pass_on_loginbooleanOptional
Force a password change on next login.
store_creditstringOptional

The amount of credit the customer has. (Float, Float as String, Integer)

tax_exempt_categorystringOptional

If applicable, the tax-exempt category of the shopper’s customer account. You can apply a tax-exempt category to multiple customers. This code should match the exemption codes provided by the third-party integration.