Access To Shopify Rest API Before Installing App

Access To Shopify Rest API Before Installing App

user072319
Shopify Partner
131 0 17

Hi there, 

 

We have a Shopify live app. We want to add a feature to qualify the merchants before they install the app based on some criterias like order history (calculated through Order API).

 

Once the user clicks on "Add App" button in the app store listing page, they will be redirected to the page asking for scopes and permissions with "Install app" button. As soon as they click on "Install app" button, the app will be listed in their admin dashboard "Apps & Sales Channles" Settings.

 

We want to avoid our app being listed in their "Apps & Sales Channels", if they are disqualified. 

 

How can I do  qualify (basically get API access) the merchant even before they click on "Install App" button?

 

Any pointers would be appreciated.

Reply 1 (1)

JeffeY3
Shopify Partner
6 0 1

With my understanding, we couldn't get the access of admin API before the installation since the API token would only be generated after the installation.

 

Of couse, the frontstore API could be accessed without authentication. You could check some public information. https://shopify.dev/docs/api/storefront

 

On the other hand, I think another solution is not to inturrupt the installation process or control the listig in "Apps & Sales Channels". You could check the qualification after get the token and display different message in app admin page.