For AI agents: markdown of this page — /docs-content-en/entities/catalog-skus/aggregate.md documentation index — /llms.txt

Aggregate SKUs

POST /v1/catalog-skus/aggregate

Counts and groups SKUs within a catalog. filter.iblockId is required.

For filter.type, pass one exact number: 3 or 6. Operators, arrays and other values return 400 UNSUPPORTED_FILTER.

Terminal
curl -X POST "https://vibecode.bitrix24.com/v1/catalog-skus/aggregate" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filter":{"iblockId":25},"aggregate":[{"field":"*","function":"count"}]}'