How to get the selling plans for a product via the storefront graphql api?

eat_to_evolve
Excursionist
18 0 9

I'm not sure if I am missing something but there doesn't seem to be any way to get the selling plans for a particular product using the storefront graphql api.

The storefront ajax API has this functionality, it has a selling_plan_groups field for the product, but the graphql api does not.

Screen Shot 2021-04-09 at 2.26.13 PM.png

Thank you!

Replies 4 (4)

matart
Shopify Staff (Retired)
31 4 5

Hey @eat_to_evolve 

 

Sorry, the Storefront API is not available yet. It is on our roadmap (https://shopify.dev/concepts/apps/subscription-apps#product-roadmap), but not scheduled until H1 2022.

To learn more visit the Shopify Help Center or the Community Blog.

gprusiyski
Shopify Expert
3 0 0

Hello @matart is there an update regarding this.
We still cannot access the selling plans via the storefront API.

matart
Shopify Staff (Retired)
31 4 5

hey @gprusiyski.

 

I haven't looked at this in a bit but is this what you are looking for: 

 

https://shopify.dev/api/storefront/2022-10/objects/Product#connection-product-sellingplangroups

To learn more visit the Shopify Help Center or the Community Blog.

robertnguyen
Shopify Partner
2 0 0

robertnguyen_0-1695030414788.png

I wan remove sellingplangroup for product .
   This is list product and sellingplangroup 
I cannot delete them
And when I get by id sellingplangroup ok but I get sellingplangroups it null
Help me !