Shop API icon

Shop API

Call Shop API

Customer Groups → Count

AI-generated

Summary

Counts customer groups matching an optional JSON filter by sending a POST request to the customer group search endpoint.

Inputs

  • Request filter — Optional JSON object used as the request filter. Invalid JSON or a JSON value that is not an object is ignored; the request then uses an empty filter.

Output shape

A single n8n item containing a total number.

The request forces page and pageSize to 0. If the response has no total field, the output is { "total": 0 }.

Examples

Example 1: Count matching customer groups

Set Request filter to a JSON object with the desired criteria, or leave it blank to count without criteria.

Links

Discussion