No weight in the product webhooks

Hi
Product create/update webhooks used to have weight and weight_unit for its variants. Now they are gone. Can you advise?

Hi there,

weight and weight_unit have moved from ProductVariant to InventoryItem. See this changelog.

weight and weight_unit are now part of InventoryItem and should come across on the InventoryItem webhooks. That said we can can confirm these fields are missing at the moment from our InventoryItem webhooks. We are actively working on adding weight and weight_unit to the InventoryItem webhooks.

See this related post:

Oh shoot. Can’t believe you guys forgot to add it to inventory items hook… But yeah it happens, I’m looking forward to start getting this again

Hey would you mind also adding on_hand and committed numbers to inventory levels webhooks?

Could you please update us when weight and weight_unit are added to the InventoryItem webhooks? :pray:

We are unable to upgrade to 2024-07 for this reason. Thank you!

RJ, any updates. It seems like this original thread gets ignored

Should be updated at Recent changes to Shopify’s platform or even Upcoming changes to Shopify’s platform when available

Hello,

Same response as in the other thread, but adding here to ensure everyone who has asked about it is looped in on the response:

We are working on it and expect it to be available within the next few weeks.

I can let you know here and the other thread once it has been made available.

CC @curzey yes, we will add it to our changelog

1 Like

Hello @Stan_Andrus

You asked about this:

Hey would you mind also adding on_hand and committed numbers to inventory levels webhooks?

We do not have any immediate plans to add more named quantities such as on_hand or committed to the inventory_levels webhook at this time. I will pass your feedback along to our product team though for their consideration. In the meantime you can get the information from the InventoryLevel object in graphql.

Thanks @cbella. Can you please also answer this Webhook for Inventory OnHand change
I wanted to have a separate thread

Hello,
The new fields weight_value and weight_unit are now available to the inventory_items/create and inventory_items/update webhooks.

Here’s an example of what a webhook may look including the weight fields

{
  "id": 271878346596884015,
  "sku": "example-sku",
  "created_at": "2025-01-28T19:00:00-05:00",
  "updated_at": "2025-01-28T19:00:00-05:00",
  "requires_shipping": true,
  "cost": null,
  "country_code_of_origin": null,
  "province_code_of_origin": null,
  "harmonized_system_code": null,
  "tracked": true,
  "country_harmonized_system_codes": [],
  "weight_value": 54,
  "weight_unit": "g",
  "admin_graphql_api_id": "gid://shopify/InventoryItem/271878346596884015"
}

We hope this helps!

1 Like

This is awesome! Thank you so much :grin:

Are there plans to add weight and weight_unit through inventoryItem to the products webhooks?

Hi @Aurimas_Rimkus

Would be good to know why having this info on the inventory_items/create and inventory_items/update webhooks doesn’t work for your usecase?

Technically, it’d be possible for us to use inventory_items webhooks, but it’d require much more effort in our case. Having it on products webhooks would be much more convenient for us.

Hello @Aurimas_Rimkus

This comment above No weight in the product webhooks - #2 by RJ-Shopify mentions how we removed weight from the product variant.

We removed fields from product variant that belong on the inventory item.
More in the changelog

1 Like