latestSwagger 2.0Proprietary2026-08-17126191431.8 KB

7f97d8cd0f1e

inventory

Get ERP inventory aggregates

Fetches aggregated statistics for a business node's inventory items.

get/inventory/aggregates

Query parameters

business_node_idstring required

Business node ID (leaf) the inventory is scoped to

Response

OK

duplicate_primary_identifier_countinteger
matched_primary_identifiersinteger
total_recordsinteger
total_unique_primary_identifiersinteger
unconsolidated_countinteger

UnconsolidatedCount is the number of ERP records whose primary identifier appears exactly once in the node (not shared with any other record). It is the inverse of the "duplicates" set and is computed with the same NOT-EXISTS predicate as the unconsolidated list filter so the count matches the filtered row set.

unmatched_primary_identifiersinteger