How can I change a variant to sold out when another variant runs out of stock?

Topic summary

  • Goal: Sync inventory between variants across two different products. When a variant in product A runs out of stock, automatically set the corresponding variant in product B to sold out (inventory = 0).

  • Context: Fulfillment API and inventory-management. “Variants” are product options (e.g., size/color) whose stock needs to be linked so they deplete together.

  • Proposed approach: Use an automation workflow to mirror inventory levels. A shared demo link (GetMesa) shows how to sync inventory for bundle components, which can be adapted to keep variant stocks aligned across products. The linked resource is central to the solution.

  • Outcome/Status: No confirmation of implementation or native API solution provided. Next step is to test/adapt the linked workflow to map the specific variants between the two products. Discussion remains open.

Summarized with AI on January 3. AI used: gpt-5.

I have two diffrent products that both have multiple variants.
I want them to have a “synced” stock so when one variant on product A runs out of stock the variant stock on product B is also set to 0 in stock.

1 Like

I built a workflow to do this kind of thing:

https://www.getmesa.com/blog/sync-inventory-levels-for-bundle-components-demo/