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!

0 Likes
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...

0 Likes