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.

1 Like

You can check mapping from deprecated plan_name to plan_display_name

2 Likes

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.