Webhook containing both product + variant + inventory item

After July 2024, several fields will be removed from the product webhook, including:

  • fulfillment_service
  • inventory_management
  • grams
  • weight
  • weight_unit
  • requires_shipping

Currently, sku remains as a duplicate from the inventory item resource.

I am wondering if there could be a webhook that returns both product and variant data, along with a few inventory item fields as defined here: Shopify API Webhooks Documentation. Alternatively, the fields cloned from inventory_item could be reintroduced into the variants within the product webhook?

Key fields such as sku, tracked, cost, and weight are particularly important (No weight in the product webhooks).

Since the Variant and Inventory Item already have a 1:1 relationship, and developers can now select the specific fields they want included in webhooks (which reduces webhook size), this approach could simplify data synchronization for developers.

Additionally, there are cases where the inventory_item webhook arrives before the product webhook, which excludes crucial information about the variant (Exclusion of variant_id from InventoryItem Webhooks).

2 Likes

Agreed. These changes seem like a pretty big step backwards now from a developer experience perspective. We would have to add additional webhooks (for the inventory items) just to get the weight of a product and compensate for out-of-order delivery scenarios, or make an extra GraphQL call which adds additional latency especially when reading a large amount of products - both options being pretty undesirable.

2 Likes

I agree as well. This is currently blocking us from using 2024-07 version.