Is there really no unique identification of shop plan in the GraphQL API?

Lull
Excursionist
24 1 3

Hi,

 

I wanted an enum or similar for indicating the current plan for a given shop in the GraphQL API, but I have not been able to find anything other than:

{
  shop {
    plan {
      displayName
      partnerDevelopment
      shopifyPlus
    }
  }
}

which only gives me a string to match up against, which I would like to avoid if at all possible.

Is there a way to get an enum or similar which indicates the shop plan?

 

Thanks,

-Louise

0 Likes
SBD_
Shopify Staff
Shopify Staff
1043 141 183

Hey @Lull,

 

There's no plan ID, you'll need to use the plan name itself.

0 Likes
Lull
Excursionist
24 1 3

Hi Scotty,

 

Thank you for your answer.

I need to identify the different plans, and using a name instead of an enum/id is of course unfortunate in case you change the plan names, so if possible it would be great with an id.

But thank you for clarifying, I will use the name.

 

Thanks,

-Louise

0 Likes