Shop API icon

Shop API

Call Shop API

Customers → Count

AI-generated

Summary

Counts Shop API customers matching an optional JSON filter by sending a POST request to /v1/customers/search.

Inputs

  • Request filter — Optional JSON object used as the request body to filter customers. Invalid JSON or a non-object value is ignored; the node sets page and pageSize to 0 for the count request.

Output shape

A single n8n item containing { "total": number }.

The value comes from the response’s total property, converted to a number; if that property is absent, it returns 0. The request uses the Shop API credentials.

Links

Discussion