A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I would like to know how I can use the API to change this setting for some products.
The idea is that we will have a negative stock limit and when we reach it, we want to stop taking orders.
Solved! Go to the solution
This is an accepted solution.
Hey there - you can do this by updating the inventory_policy using the productVariantUpdate mutation.
Check out the docs for the mutation here, and the inventory_policy attribute here.
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hey there - you can do this by updating the inventory_policy using the productVariantUpdate mutation.
Check out the docs for the mutation here, and the inventory_policy attribute here.
To learn more visit the Shopify Help Center or the Community Blog.