Tags:
- Action Required
- Admin GraphQL API
- 2024-07
Product Variant Field Cleanup
As of GraphQL Admin API version 2024-07, various fields on Product Variants that are duplicates of the linked Inventory Item will be removed from the Product Variant model, input types, and webhooks, as well as restrictions to
GraphQL Fields
In general the fields removed (and their replacement) are:
: The fulfillment service is now defined by where the item is stocked, and the fulfillment services that own those locations.: This is replaced by thefield of the inventory item.: This is replaced by thetrackedfield from the inventory item. Inventory management information is more clearly defined with both thetrackedandfields on the inventory item.: This is replaced by thefield of the inventory item.sku: This field will continue to be returned on the Product Variant model, but is not directly editable. Rather the field will just proxy theskufield from the inventory item.weightand: These fields are replaced by the weight type in.
More specifically, these fields are kept or removed:
- From
:,,,,sku,weight, andare all removed. - From
:,,,sku,weight, andare all removed. - From
:,,weight, andare all removed.skuis kept. - From
return type:,,,,weight, andare all removed.skuis kept.
Metafields
As part of this work, you'll no longer be able to set the metafield under the global namespace for Product Variants. This was an alternative way of updating the of a variant, but since variants are no longer going to have the field, the metafield is being removed.
Webhooks
The Product Variant webhooks are also seeing some fields removed, namely:
gramsweight
Was this section helpful?