统计 SKU 库存条数
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.
统计内容
totalNumberOfRecords 计算的是**「仓库-SKU」行**,而非相异的 SKU 值。同一个 SKU 若存放于三个仓库,会计为三行。这与 Search SKU inventory 在相同筛选条件下所分页遍历的内容完全一致。
相关
- 搜索 SKU 库存 — 分页遍历符合的「仓库-SKU」行。
授权
Your API key
Your API token — keep this private
查询参数
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.
响应
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.