Skip to content

List Customer Groups

Lists the customer groups customers can be segmented into, returned in the { data, meta } envelope.

EndpointMethod
/api/admin/customers/groupsGET

Response Fields

Each row in data:

FieldTypeDescription
idintegerGroup ID.
codestringUnique group code.
namestringDisplay name.
isUserDefinedinteger0 (system group) or 1 (user-defined).
customersCountinteger | nullDetail-only — null on listing rows.
createdAt, updatedAtstringTimestamps.

The meta object carries currentPage, perPage, lastPage, total, from, and to.

Query Parameters

ParameterTypeDescription
page, per_pageintegerPagination (default 10, cap 50).
codestringPartial code match.
namestringPartial name match.
is_user_definedinteger0 (system) or 1 (user-defined).
sortstringid (default desc), code, name.
orderstringasc, desc.

customersCount is detail-only — null on listing rows.

TIP

For what customer groups are and how they're used, see the Customer Groups overview.

Released under the MIT License.