How to check if a merchant is using Shop from outside a mini

Hello,

We’re currently having a small issue. From our backend we’re sending data to display in our mini, but ideally we’d like to only send data about clients that have installed Shop. We can’t use the useShop hook from our backend. There could be a way using the appInstallations graphQl query, but it requires approval from Shopify support. Is there any other way to perform that check?

If you want to verify that a request originates from the Shop app, consult the Custom Backend section in our docs: Custom Backend.

It’s not possible to query Shop Minis APIs from a server. You can’t use the useShop hook.