Skip to main content

inventory_adjustment_history

The inventory_adjustment_history schema captures event-level inventory adjustments. It's the best source for tracing how an inventory quantity changed, who or what initiated it, and which reference document explains the change.


Counts and calculations that let you track key business indicators. Metrics show up as the columns when queried.

Metrics you can use when querying FROM inventory_adjustment_history.

Anchor to inventory_adjustment_change
inventory_adjustment_change

The net quantity added or removed by inventory adjustments. Positive values increase inventory, and negative values reduce inventory.

Anchor to inventory_adjustment_count
inventory_adjustment_count

The number of inventory adjustments where the quantity changed.


Attributes of your data that let you look more granularly at aspects of the data. Group and filter by dimensions to shape the rows your query returns.

Dimensions you can use when querying FROM inventory_adjustment_history.

The calendar day when inventory quantities were adjusted.

Anchor to day_of_week
day_of_week

The day of the week an inventory adjustment was made, with values Monday through Sunday.

The hour when inventory quantities were adjusted.

Anchor to hour_of_day
hour_of_day

The hour of day an inventory adjustment was made, with values 0 through 23.

Anchor to inventory_adjustment_group_id
inventory_adjustment_group_id

The Shopify identifier for a set of related inventory adjustments.

Anchor to inventory_adjustment_id
inventory_adjustment_id

The Shopify identifier for a single inventory adjustment. Use inventory_adjustment_id to look up or filter to a specific adjustment.

Anchor to inventory_app_id
inventory_app_id

The Shopify identifier for the app that made the inventory adjustment. Use inventory_app_id with inventory_app_name to show readable app labels.

Anchor to inventory_app_name
inventory_app_name

Name of the inventory app that made the adjustment

Anchor to inventory_change_reason
inventory_change_reason

The reason specified for the inventory adjustment, such as Correction, Restock, Manual Adjustment, or Transfer Received.

Anchor to inventory_group_id
inventory_group_id

Grouping of inventory items based on where they physically reside

Anchor to inventory_item_id
inventory_item_id

The Shopify identifier for the inventory item that was adjusted. Use inventory_item_id to track changes for a specific item or compare adjusted items across locations.

Anchor to inventory_state
inventory_state

The affected stock category, such as Available, Committed, Reserved, or Incoming. Committed means inventory allocated to confirmed orders that haven't been fulfilled.

Anchor to minute
minute

The minute when inventory quantities were adjusted.

Anchor to month
month

The calendar month when inventory quantities were adjusted.

Anchor to month_of_year
month_of_year

The month of the year an inventory adjustment was made, with values 1 through 12.

Anchor to product_variant_id
product_variant_id

The Shopify identifier for the product variant whose inventory was adjusted. Use product_variant_id with product_variant_title or product_variant_sku to show variant titles or SKUs.

Anchor to quarter
quarter

The calendar quarter when inventory quantities were adjusted.

Anchor to reference_document_id
reference_document_id

The Shopify identifier for the resource named by reference_document_uri. This value is present when reference_document_uri points to a Shopify resource.

Anchor to reference_document_type
reference_document_type

The kind of Shopify resource named by reference_document_uri. This value is present when reference_document_uri points to a Shopify resource.

Anchor to reference_document_uri
reference_document_uri

The freeform reference that explains why the inventory change happened. The value might come from Shopify or an external tool.

Anchor to second
second

The second when inventory quantities were adjusted.

Anchor to shop_id
shop_id

The unique Shopify identifier for your store. Use shop_id with shop_name to show readable store labels.

Anchor to staff_id
staff_id

The Shopify identifier for the staff member who made the inventory adjustment. Use staff_id with staff_member_name to show readable staff labels.

The week when inventory quantities were adjusted.

Anchor to week_of_year
week_of_year

The week of the year an inventory adjustment was made, with values 1 through 53.

The calendar year when inventory quantities were adjusted.

Anchor to inventory_location_id
inventory_location_id

Shopify identifier for the inventory location

Anchor to inventory_location_name
inventory_location_name

Name of the inventory location

Anchor to shop_name
shop_name

Name of your store

Anchor to inventory_cost_is_recorded
inventory_cost_is_recorded

Whether the inventory item has a cost saved in Shopify, with values true and false.

Anchor to inventory_is_tracked
inventory_is_tracked

Whether Shopify tracks inventory adjustments for the inventory item, with values true and false.

Anchor to inventory_item_cost
inventory_item_cost

The cost recorded for one unit of the inventory item, in your store's currency.

Anchor to product_variant_sku
product_variant_sku

SKU of the product variant

Anchor to product_variant_title
product_variant_title

Display name of the product variant

Anchor to staff_member_name
staff_member_name

Name of the staff member associated with the order



Was this page helpful?