Can ResourceLimit object indicate out-of-stock purchases in Shopify?

Solved

Can ResourceLimit object indicate out-of-stock purchases in Shopify?

sj_k
Shopify Partner
7 0 1

If a store are using an external payment service, it may be able to purchase even if the item is out of stock, even if "Continue selling when out of stock" is not selected.
In preparation for that case, I would like to make a flow for order-cancel when an out-of-stock item is purchased in Shopify flow.

 

What does this ResourceLimit represent for Inventory state?
https://shopify.dev/docs/api/admin-graphql/2022-04/objects/ResourceLimit

Is it the inventory "Available" value set for each product?

Accepted Solution (1)

paul_n
Shopify Staff
1150 142 273

This is an accepted solution.

We are looking to add this to our docs shortly, but this helps explain how inventory works and how you see it in Flow: https://medium.com/@paul.nuschke/earn-more-by-automating-your-low-stock-processes-for-locations-vari...

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.

View solution in original post

Reply 1 (1)

paul_n
Shopify Staff
1150 142 273

This is an accepted solution.

We are looking to add this to our docs shortly, but this helps explain how inventory works and how you see it in Flow: https://medium.com/@paul.nuschke/earn-more-by-automating-your-low-stock-processes-for-locations-vari...

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.