FROM CACHE - en_header

How to get selling plans which is created for subscription

manektech
Tourist
6 0 1

I am building a Shopify subscription extension, I want to display selling plans at the Shopify admin product page so vendor can add existing selling plans to the product. I have checked for the Shopify API but not found any API for getting selling plans. Is there any other way to get subscription plans? OR any Shopify API available which I didn't find.

Thanks!

Replies 2 (2)
smathur
Tourist
8 0 3

You can use the sellingPlanGroups in QueryRoot object of GraphQL to query the Selling Plans.

https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#sellingplangroups-2021...

greekTRUE
Shopify Partner
11 0 0

"Field 'sellingPlanGroups' doesn't exist on type 'QueryRoot'"

...does this not work with the Storefront API?