Restocking when the Variant has changed.

10 0 2

Hi, I have a strange issue that may happen to my app. 


My app does returns and auto refunds for merchants, we also do auto restocking to help them with their inventory. 

One issue we have is when a merchant has a product with no variant and a customer purchases this product and wants to make a return. 
Before the customer can complete the return and trigger the auto restocking, the merchant added variants to the product, this caused the initial variant_id to not exist. 
Due to this, the auto restock failed as the variant_id cannot be found.

Anyone know a workaround or solution to this?

Thanks in advance!

Shopify Staff
Shopify Staff
587 72 130

Hey @Hewrin,


If the previous variant_id no longer exists, it won't be possible to restock or take any other actions on that variant. In this case I would suggest notifying the merchant that the variant no longer exists, and perhaps recommend making a manual adjustment (if necessary) for whatever variant replaced the deleted one.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution