Skip to main content
GET
Count SKU inventory rows
此页面由 AI 自动翻译。API 技术规格以英文呈现为标准。如有任何疑问,请参阅英文版本
此为 Enterprise 专属 功能,仅对 Return Helper Enterprise 客户启用。如需了解此服务的定价,请联系 enterprise-solution@returnhelper.com
返回符合搜索 SKU 库存相同筛选条件的「仓库-SKU」行数。可在遍历游标前用来估算分页规模。

统计内容

totalNumberOfRecords 计算的是**「仓库-SKU」行**,而非相异的 SKU 值。同一个 SKU 若存放于三个仓库,会计为三行。这与 Search SKU inventory 在相同筛选条件下所分页遍历的内容完全一致。

授权

x-rr-apikey
string
header
必填

Your API key

x-rr-apitoken
string
header
必填

Your API token — keep this private

查询参数

warehouseIdList
string

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.

skuList
string

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.

totalNumberOfRecords
integer<int32>

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.