A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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.