---
title: "Get ERP inventory aggregates"
method: GET
path: "/inventory/aggregates"
tags: ["inventory"]
---

# Get ERP inventory aggregates

`GET /inventory/aggregates`

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

## Query parameters

- `business_node_id` string, required

## Response `200`

OK

- ModelsERPInventoryAggregatesResponse
  - `duplicate_primary_identifier_count` integer
  - `matched_primary_identifiers` integer
  - `total_records` integer
  - `total_unique_primary_identifiers` integer
  - `unconsolidated_count` integer — 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_identifiers` integer

## Other responses

- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/resourcly/apis/resourcly-api.md) · [All operations](https://skmtc.net/resourcly/apis/resourcly-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/resourcly/resourcly-api/revisions/7f97d8cd0f1e/schema)
