I am following shopify tutorial at https://shopify.dev/docs/apps/getting-started/build-qr-code-app?framework=remix
I have added new option to track inventory level in my app. Is there any way whatsoever that I can execute my app function code when any new order is made and update database with new inventory value? Or I am left out with web hooks only?
This is an extension-app type that I build with this tutorial. So it means its hosted by shopify and integrated into admin panel. Meaning that I do not have embedded app or external API server.
I hoped that somehow I could trigger the extension-app code on some shopify signal when new order is created. But I don’t see any other way to do it other than using shopify web hooks and custom backend server with public API. However my only concern with webhooks as per https://shopify.dev/docs/apps/webhooks#limitations is that the dedelivery isn’t always guaranteed. Stock updating is quite critical and cannot allow for case where its not updated because webhook wasnt requested on new order.
I saw shopify has this thing called ‘Shopify Functions’ but I dont think this would handle my case either. Unless I am missing something.
Thanks for your reply anyway : )