Get Inventory Change Summary
GET/api/veracore/integration-instances/:integration_instance/inventory-changes/summary
Aggregate the ledger over exactly the rows the list endpoint would return: how many changes were observed, how many went each way, and the net and gross unit swing.
This endpoint currently requires session authentication; Personal Access Token scope support is in progress.
Veracore publishes no movement feed, so each row is the difference between two consecutive snapshots — an observation, never a warehouse transaction. Treat these as observed changes, not as inventory movements, and do not reconcile them against a movement ledger.
Same filters as the list endpoint — this endpoint accepts the identical filter[...] query parameters as Get Inventory Changes and aggregates over the identical filtered set, so a summary and a page of rows fetched with the same query string always describe the same data. sort, page and per_page are ignored. Narrow the window with a changed_at filter rather than a separate window parameter.
First observations are out of scope by default. A row whose source is initial is an opening balance — Veracore reported a quantity for an offer that had never been seen before, so there was no earlier snapshot to diff against. Counting it as a receipt would report an entire catalogue as having been received the instant it was first synced. changes, increases, decreases, net_delta, units_in and units_out therefore cover only snapshot and absent rows, and those rows are the only ones in scope at all unless filter[source_scope] says otherwise — so on the default view baseline is zero and observations equals changes. Send filter[source_scope]=all (or =initial) to bring the opening balances into scope, where they are reported separately under baseline and still kept out of every movement figure.
Response fields
changes— observations that represent real movement (excludesinitial)increases/decreases— movement observations by directionnet_delta— signed sum of the moved unitsunits_in/units_out— gross units gained and lost, both positiveobservations— every row in scope, including first observations whenfilter[source_scope]brings them in; matches the list endpoint'stotalbaseline.observations/baseline.units— the first observations and the units they opened withby_source— row count keyed by sourcerange.from/range.to— the observed span of the rows in scope, or null when nothing matches
Authentication: Requires Bearer token.
Request
Responses
- 200
- 401
- 403
- 404
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.