API reference · Customers

List Customer Groups

GEThttps://api.sandbox.cws.digital/customer/group/byGroupIn homologation

Description

Queries customer groups of your store by id, name or external id.

Parameters

Query parameters

FieldTypeRequiredDescriptionValue
idstringConditional

Internal group ids, numbers only. Accepts several separated by commas: id=4470801,4470802.

namestringConditional

Group names, exactly as registered. Accepts several separated by commas: name=Atacado Sudeste,Varejo.

externalIdstringConditional

Group external ids. Accepts several separated by commas: externalId=GRP-ATC-SE,GRP-VRJ.

Business rules

Combined criteria

Send at least one of id, name or externalId. Each one accepts several values separated by commas, and the criteria are combined: every group that matches any of them is returned.

The groups come in id order, without pagination.

Name with a comma

The comma separates the values, so a group with a comma in its name is not found by name. Search for that group by id or externalId.

Responses

  • 401

    Missing, malformed or expired token.

Try it

Sandbox

Language

Credentials

Access token: saved in this tab and used on every endpoint.

Each token only reaches the partner's own data and that of the branches with an authorized link.

Don't have sandbox credentials yet? See how to request them

Request

cURL
curl --request GET \
  --url 'https://api.sandbox.cws.digital/customer/group/byGroup' \
  --header 'Authorization: Bearer <access_token>'

Response

Click Try it to see the real response here, or pick a documented example: