Hi Shopify Developer Community,
I'm building custom analytics apps for my store and need access to historical inventory data via the GraphQL API.
**Use Case:**
I want to calculate the actual sales velocity of products. For this, I need to know on how many days a product was actually available (available > 0), not just how many days since product creation.
**Example:**
A product was created on Oct 1, 2025, but was only available on 4 days (Nov 1, 2, 24, 25). On all other days, the stock was 0. The current API only shows "75 days since creation", which is misleading for my calculations.
**Current Problem:**
- GraphQL API only provides current inventory via `inventoryLevel.available`
- No way to retrieve historical inventory data
- The `InventoryAdjustmentGroup` type exists, but there's no query to access it
- The Inventory Adjustment List in Shopify Admin shows this data, but it's not accessible via API
**Requested Solution:**
Please implement one of the following:
1. A GraphQL query for `inventoryAdjustmentGroups` with filtering by product/variant and date range
2. A new field in `InventoryItem` or `ProductVariant` that returns historical `available` values
3. Access to the data already available in the Admin's Inventory Adjustment List
**Proposed Query Structure:**
graphql inventoryAdjustments( inventoryItemId: “gid://shopify/InventoryItem/123” first: 250 after: “cursor” createdAtMin: “2025-01-01T00:00:00Z” createdAtMax: “2026-01-14T23:59:59Z” ) { edges {
node {
createdAt
delta
availableAfterChange
reason
}
} }
**Why This Matters:**
Without this data, accurate product performance analysis is impossible. Sales velocity based on "days since creation" is misleading and leads to wrong business decisions.
Would love to hear if others need this feature too!
Thanks,
Oliver