How to determine whether a given store is an affiliate store with the GraphQL API?

Louise_Elmose_H
Shopify Partner
65 2 7

Hi,

 

I believe Shopify recommends making apps free for affiliate stores?
How can I determine whether a given store is an affiliate? I think this is done in the REST API by checking whether shop-app_plan == 'affiliate', but what about in GraphQL?
For the app plan there are the following fields:

  1. partnerDevelopment
  2. displayName
  3. shopifyPlus

I assume I should check the displayName, but there are no list of possible values for this parameter?

 

Thanks,

-Louise

0 Likes
SBD_
Shopify Staff
Shopify Staff
1044 141 185

Hey @Louise_Elmose_H 

 

I believe Shopify recommends making apps free for affiliate stores?

Are you able to link to any docs on this?

 

I think this is done in the REST API by checking whether shop-app_plan == 'affiliate', but what about in GraphQL?

I'm not sure affiliate is mentioned in the plan name - do you have an example affiliate store?

0 Likes
Louise_Elmose_H
Shopify Partner
65 2 7

Hi Scotty,

 

Thank you for your answer.

No I do not have an example affiliate store, and I cannot find the docs.

In a previous app I made the app free for affiliate via the REST API, and I believe it was on a Shopify recommendation, but as mentioned I cannot find the docs now.

If you don't know anything about it, I think I'll just leave it at that, and make the app free for developer stores.

 

Thanks,

-Louise