Hello, I am building an app that requires the shopify app to subscribe to a gcp pubsub. When a message arrives, the app needs to update the order status for the correct order in the correct store. However, the user might not be logged in when that happens.
How should I implement the app such that even though the user is not logged in, the app can still update the correct shopify store order information?
Thanks!
I don’t fully understand the flow here - is “user” a merchant or a customer here?
If you can provide more details on this it will be easier to troubleshoot for you.
Hi I meant the merchants who install the app to their store
So when an order is made, the app will receive a webhook and then the app should update something on the order, likely using the orderUpdate mutation? If so, the merchant shouldn’t need to be logged in.
What I want to achieve is slightly different. A separate system is managing the fulfillment. When an update is made in that system, my Shopify app needs to catch the pubsub message and update Shopify, and this needs to happen without the user logging into Shopify app.
Thanks for the explanation - I still don’t see how a user being logged into Shopify would affect this. Does the user currently need to take an action on the app UI when an order is updated?