Get time an item sold out

Highlighted
Shopify Partner
1 0 0

Using the shopify API, you can see when an item is published to your store. You can also set your store so that when an item sells out, it automatically becomes unpublished. Is there a way to see at what time that occurs? Alternatively, is there a way to find the time at which the inventory for an item reaches 0? 

0 Likes
Highlighted
Shopify Partner
132 1 18

Hi There,

 

You could periodically ping the API but there's a good chance that something will slip by. I would say a better way would be to use a webhook that will notify you when an order is placed. That way you only check when you need to and you'll be updated in real time.

 

https://help.shopify.com/en/api/reference/events/webhook

 

Cheers,

Elliott

Feeling a bit lost? Contact elliot@mandelbrotian.com for help with theme setup, alterations, custom functionality, and app development.
0 Likes
Highlighted
Shopify Partner
273 22 42

Shopify Flow could also email you, ping you on slack, etc.

Best Regards,
Duncan.
Isle of misfit code & development
http://ecomdev.ca
0 Likes
Highlighted
Shopify Partner
132 1 18

Just keep in mind that Shopify Flow is only available for Plus customers.

 

Cheers,

Elliott

Feeling a bit lost? Contact elliot@mandelbrotian.com for help with theme setup, alterations, custom functionality, and app development.
1 Like