Shopify order count not showing anymore with our API

Shopify order count not showing anymore with our API

ym24
Excursionist
50 0 11

Orders Webhook In Some Cases is not showing order count anymore . they said it has deprecated from shopify release update but what do we do now?

please see below 

Screen Shot 2023-05-28 at 11.24.55 PM.png

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 509

Hey @ym24 - thanks for getting in touch. You are correct here - the orders_count field has been deprecated as of December 2021. That said, the orders_count field should still be accessible using the customer resource. I did a quick test on my end and can confirm that the customers/update webhook should trigger when orders are created for a specific customer and would contain the orders_count field in the payload - so this would be the best way to grab that info at the moment. 

Your app would need access to protected customer data, so if it isn't already approved for protected customer data access, I'd recommend checking out our documentation here. 

Hope this helps!

Al | Shopify Developer Support

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog