capabilities.work

Restock a Product Variant

A 3-step recipe with Shopify. We can help you get access.

Recipe · 3 steps

Restock a Product Variant

with Shopify · Stock Level Management

Set a variant's available stock at the primary location by resolving its inventory item.

  1. List the product's variants and select the matching variant so its inventory item id can be used for the stock update.
  2. List the store's locations and use the first location as the target.
  3. Set the available quantity for the variant's inventory item at the resolved location.
What you'll need to have ready
  • productId: The product ID owning the variant.
  • variantId: The variant ID to restock (matched within the product's variants).
  • available: The absolute available quantity to set.
For your developer

Arazzo workflow shopify:restock-product-variant, 3 operations: listProductVariants → listLocations → setInventoryLevel. Specs on APIs.io.