Shop API icon

Shop API

Call Shop API

Orders → Count

AI-generated

Summary

Count Shop API orders by posting an optional JSON filter to the orders search endpoint. The request forces page and pageSize to zero and returns the API’s total as one n8n item.

Inputs

  • Request filter — Optional JSON object used to filter orders. Invalid JSON or a non-object value is ignored, resulting in an unfiltered count.

Output shape

A single item with a json object containing total as a number.

The operation sends a POST request to /v1/orders/search with page: 0 and pageSize: 0. If the response has no total field, the output uses total: 0.

Links

Discussion