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.
Anchor to Use casesUse cases
- State changes: Group
inventory_adjustment_changebyinventory_stateto split adjustments across available, reserved, damaged, and other states. - Attribution: Count
inventory_adjustment_countbyinventory_app_nameorstaff_idto break adjustments down by app or staff. - Source documents: Use
reference_document_uri,reference_document_type, andreference_document_idto connect adjustments to their source documents. - Item drill-down: Filter by
inventory_item_idorproduct_variant_idwhen investigating adjustments for a specific item.
Anchor to MetricsMetrics
Counts and calculations that let you track key business indicators. Metrics show up as the columns when queried.
Metrics you can use when querying .
- Anchor to inventory_adjustment_changeinventory_
adjustment_ changeinventory_ adjustment_ change INTEGERINTEGER The net quantity added or removed by inventory adjustments. Positive values increase inventory, and negative values reduce inventory.
- Anchor to inventory_adjustment_countinventory_
adjustment_ countinventory_ adjustment_ count INTEGERINTEGER The number of inventory adjustments where the quantity changed.
INTEGER
A whole number without decimal places, used for counts, quantities, and other discrete numeric values.
Anchor to DimensionsDimensions
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 .
- Anchor to daydaydayDAY_TIMESTAMPDAY_TIMESTAMP
The calendar day when inventory quantities were adjusted.
- Anchor to day_of_weekday_
of_ weekday_ of_ week DAY_OF_WEEKDAY_OF_WEEK The day of the week an inventory adjustment was made, with values Monday through Sunday.
- Anchor to hourhourhourHOUR_TIMESTAMPHOUR_TIMESTAMP
The hour when inventory quantities were adjusted.
- Anchor to hour_of_dayhour_
of_ dayhour_ of_ day HOUR_OF_DAYHOUR_OF_DAY The hour of day an inventory adjustment was made, with values 0 through 23.
- Anchor to inventory_adjustment_group_idinventory_
adjustment_ group_ idinventory_ adjustment_ group_ id IDENTITYIDENTITY The Shopify identifier for a set of related inventory adjustments.
- Anchor to inventory_adjustment_idinventory_
adjustment_ idinventory_ adjustment_ id IDENTITYIDENTITY - Anchor to inventory_app_idinventory_
app_ idinventory_ app_ id IDENTITYIDENTITY - Anchor to inventory_app_nameinventory_
app_ nameinventory_ app_ name STRINGSTRING Name of the inventory app that made the adjustment
- Anchor to inventory_change_reasoninventory_
change_ reasoninventory_ change_ reason STRINGSTRING The reason specified for the inventory adjustment, such as Correction, Restock, Manual Adjustment, or Transfer Received.
- Anchor to inventory_group_idinventory_
group_ idinventory_ group_ id IDENTITYIDENTITY Grouping of inventory items based on where they physically reside
- Anchor to inventory_item_idinventory_
item_ idinventory_ item_ id IDENTITYIDENTITY - Anchor to inventory_stateinventory_
stateinventory_ state STRINGSTRING 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 minuteminuteminuteMINUTE_TIMESTAMPMINUTE_TIMESTAMP
The minute when inventory quantities were adjusted.
- Anchor to monthmonthmonthMONTH_TIMESTAMPMONTH_TIMESTAMP
The calendar month when inventory quantities were adjusted.
- Anchor to month_of_yearmonth_
of_ yearmonth_ of_ year MONTH_OF_YEARMONTH_OF_YEAR The month of the year an inventory adjustment was made, with values 1 through 12.
- Anchor to product_variant_idproduct_
variant_ idproduct_ variant_ id IDENTITYIDENTITY - Anchor to quarterquarterquarterQUARTER_TIMESTAMPQUARTER_TIMESTAMP
The calendar quarter when inventory quantities were adjusted.
- Anchor to reference_document_idreference_
document_ idreference_ document_ id IDENTITYIDENTITY - Anchor to reference_document_typereference_
document_ typereference_ document_ type STRINGSTRING - Anchor to reference_document_urireference_
document_ urireference_ document_ uri STRINGSTRING The freeform reference that explains why the inventory change happened. The value might come from Shopify or an external tool.
- Anchor to secondsecondsecondSECOND_TIMESTAMPSECOND_TIMESTAMP
The second when inventory quantities were adjusted.
- Anchor to shop_idshop_
idshop_ id IDENTITYIDENTITY - Anchor to staff_idstaff_
idstaff_ id IDENTITYIDENTITY - Anchor to weekweekweekWEEK_TIMESTAMPWEEK_TIMESTAMP
The week when inventory quantities were adjusted.
- Anchor to week_of_yearweek_
of_ yearweek_ of_ year WEEK_OF_YEARWEEK_OF_YEAR The week of the year an inventory adjustment was made, with values 1 through 53.
- Anchor to yearyearyearYEAR_TIMESTAMPYEAR_TIMESTAMP
The calendar year when inventory quantities were adjusted.
- Anchor to inventory_location_idinventory_
location_ idinventory_ location_ id IDENTITYIDENTITY Shopify identifier for the inventory location
- Anchor to inventory_location_nameinventory_
location_ nameinventory_ location_ name STRINGSTRING Name of the inventory location
- Anchor to shop_nameshop_
nameshop_ name STRINGSTRING Name of your store
- Anchor to inventory_cost_is_recordedinventory_
cost_ is_ recordedinventory_ cost_ is_ recorded BOOLEANBOOLEAN Whether the inventory item has a cost saved in Shopify, with values
trueandfalse.- Anchor to inventory_is_trackedinventory_
is_ trackedinventory_ is_ tracked BOOLEANBOOLEAN Whether Shopify tracks inventory adjustments for the inventory item, with values
trueandfalse.- Anchor to inventory_item_costinventory_
item_ costinventory_ item_ cost MONEYMONEY The cost recorded for one unit of the inventory item, in your store's currency.
- Anchor to product_variant_skuproduct_
variant_ skuproduct_ variant_ sku STRINGSTRING SKU of the product variant
- Anchor to product_variant_titleproduct_
variant_ titleproduct_ variant_ title STRINGSTRING Display name of the product variant
- Anchor to staff_member_namestaff_
member_ namestaff_ member_ name STRINGSTRING Name of the staff member associated with the order
DAY_TIMESTAMP
A date value truncated to day precision.
DAY_OF_WEEK
A day within a week, used for weekday-based grouping and filtering.
HOUR_TIMESTAMP
A timestamp truncated to hour precision.
HOUR_OF_DAY
An hour within a day, typically represented as an integer from 0 to 23.
IDENTITY
A unique identifier for a Shopify resource such as a customer, product, or order.
STRING
A sequence of characters representing text data.
MINUTE_TIMESTAMP
A timestamp truncated to minute precision.
MONTH_TIMESTAMP
A date value representing the start of a month.
MONTH_OF_YEAR
A month number within a year.
QUARTER_TIMESTAMP
A date value representing the start of a fiscal quarter.
SECOND_TIMESTAMP
A timestamp truncated to second precision.
WEEK_TIMESTAMP
A date value representing the start of a week.
WEEK_OF_YEAR
A week number within a year.
YEAR_TIMESTAMP
A date value representing the start of a year.
BOOLEAN
A true or false value representing binary states.
MONEY
A monetary amount representing currency values such as prices, revenue, costs, and discounts.
inventory: Store-wide inventory state affected by these adjustments.inventory_by_location: Location-level inventory affected by adjustments.inventory_shipments: Incoming shipment data alongside manual adjustments.inventory_transfers: Stock moves between locations alongside manual adjustments.