Count SKU inventory rows
Enterprise-only. Returns the number of warehouse-SKU rows that match the same filters accepted by Search SKU inventory. The same SKU across N warehouses counts as N rows. Use it to size pagination before walking the cursor. Accepts only the optional warehouseIdList and skuList filters — there is no pageSize, cursor, or isForward.
What is counted
totalNumberOfRecords counts warehouse-SKU rows, not distinct SKU values. A SKU stocked in three warehouses contributes three to the count. This matches exactly what Search SKU inventory paginates through with the same filters.
Related
- Search SKU inventory — page through the matching warehouse-SKU rows.
Authorizations
Your API key
Your API token — keep this private
Query Parameters
Comma-separated list of warehouse IDs to filter by (e.g. 1001,1002). Same rules as Search SKU inventory: positive integers, no duplicates, at most 100 entries, each owned by the authenticated account. Omit to count rows across all owned warehouses. Optional.
Comma-separated list of SKUs to filter by (e.g. SKU-006,SKU-001). Same rules as Search SKU inventory: at most 100 entries, each matching the SKU pattern (alphanumerics plus #, -, _; maximum 32 characters), matched after trim and uppercase normalization. Omit to count all SKUs. Optional.
Response
Success
Total-count companion to Search SKU inventory. totalNumberOfRecords is returned as a top-level field alongside the standard correlationId and meta envelope.
Number of matching warehouse-SKU rows for the same filters (the same SKU across N warehouses counts as N rows), not the number of distinct SKU values.