Plan name not available in Shop GraphQL API

Plan name has been deprecated in the Shop GraphQL API but this is a field we use as a parameter when calculating the price plan for our application. Could you please consider reinstating it? We did consider using the display plan name but this does not seem as reliable as it changes at times although the plan name does not.

You can check mapping from deprecated plan_name to plan_display_name

Thank you @remy727. While this works in most cases when a shop is frozen or cancelled the webhook provided still has display plan name set as the initial plan name where plan name is set to cancelled or frozen so the behavior is inconsistent. An option could have been to issue a GraphQL query but the API is disabled once the store is frozen or cancelled. The only option left in the current state is to still rely on the plan name from the webhook but use display plan name for GraphQL which is not ideal.
Ideally display plan name should behave the same as plan name.

Hi Mathieu,

Our product team are aware on this inconsistency and are exploring best options to improve this for devs - nothing specific to share right now however.

@Liam-Shopify thank you for letting us know. Please keep us posted here on any update.

I am also interested in this topic. For the absence I knew the corresponding plan names and was able to build a map, but I cannot do this for the canceled plan. Did you manage to find something?

@Serhii_Trokhymets for the canceled/frozen plan the only way to know I found is via the planName field in the webhook payload at the moment as the API cannot be queried when the store is canceled or frozen.

Hi Liam,

Do you have any updates on this? We have the same issue right now, would appreciate any reliable fix.

We are also waiting this to migrate from API.

We are revisiting this since we now have publicDisplayName as well as the partnerDevelopment and the shopifyPlus flags. The situation is a lot better but there are still a few gaps;

  1. We still cannot tell if a shop is frozen or cancelled unless we look at the shop/update webhook payload when/if it comes
  2. We can identify staff business but not Shopify staff and Shopify alumni like we could in REST
  3. We cannot identify if a plan is for a nonprofit organization (lite or full) which has a different Shopify plan and pricing

Would it be possible to to look into addressing these gaps? This information was previously available in the deprecated displayName field

We had to deal with this a year or two ago and ended up with this mapping: Table of Shopify Plan Names Returned by their GraphQL and REST APIs · GitHub

For frozen at least you can catch it reactively: Admin API requests against a frozen shop come back 402 Payment Required (and 423 for a locked one), per the response codes page. Not a field you can poll, but it doesn’t depend on shop/update arriving.