Skip to content

Latest commit

 

History

History
62 lines (52 loc) · 1.89 KB

list-customer-groups-response.md

File metadata and controls

62 lines (52 loc) · 1.89 KB

List Customer Groups Response

Defines the fields that are included in the response body of a request to the ListCustomerGroups endpoint.

Either errors or groups is present in a given response (never both).

Structure

List Customer Groups Response

Fields

Name Type Tags Description
errors List Error Optional Any errors that occurred during the request.
groups List Customer Group Optional A list of customer groups belonging to the current seller.
cursor str Optional A pagination cursor to retrieve the next set of results for your
original query to the endpoint. This value is present only if the request
succeeded and additional results are available.

For more information, see Pagination.

Example (as JSON)

{
  "groups": [
    {
      "created_at": "2020-04-13T21:54:57.863Z",
      "id": "2TAT3CMH4Q0A9M87XJZED0WMR3",
      "name": "Loyal Customers",
      "updated_at": "2020-04-13T21:54:58Z"
    },
    {
      "created_at": "2020-04-13T21:55:18.795Z",
      "id": "4XMEHESXJBNE9S9JAKZD2FGB14",
      "name": "Super Loyal Customers",
      "updated_at": "2020-04-13T21:55:19Z"
    }
  ],
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    }
  ],
  "cursor": "cursor0"
}