Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

how to create product subscription using rails app?

Solved

how to create product subscription using rails app?

kapspatel
Shopify Partner
25 0 3

I'm create a subscription demo app using rails. but i'm read every thing but i don't know how to crete a product subscription.

 

 

Accepted Solution (1)
LarryReid
Shopify Staff
87 9 22

This is an accepted solution.

You manage the selling plan through the selling plan group: https://shopify.dev/api/storefront/reference/products/sellingplangroup. Look at the mutations: https://shopify.dev/api/admin/graphql/reference/products-and-collections/sellingplangroupcreate and https://shopify.dev/api/admin/graphql/reference/products-and-collections/sellingplangroupdelete and the other mutations that begin with `sellingPlanGroup`. I hope that helps. Let me know if you have more questions.

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

View solution in original post

Replies 3 (3)

LarryReid
Shopify Staff
87 9 22

Hello. I'll try to help.

To make sure I understand where you're at, when you say "I've read everything", does that mean you're read this page and the pages it links to?

If so, can you point to where in this diagram you're running into problems? If that diagram isn't appropriate, perhaps you can tell me how far you've gotten with your Rails app?

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

kapspatel
Shopify Partner
25 0 3

Hi @LarryReid 

 Thanks for replay. but where is api selling plan api. https://shopify.dev/api/admin/graphql/reference/products-and-collections/sellingplan

 

Thanks

LarryReid
Shopify Staff
87 9 22

This is an accepted solution.

You manage the selling plan through the selling plan group: https://shopify.dev/api/storefront/reference/products/sellingplangroup. Look at the mutations: https://shopify.dev/api/admin/graphql/reference/products-and-collections/sellingplangroupcreate and https://shopify.dev/api/admin/graphql/reference/products-and-collections/sellingplangroupdelete and the other mutations that begin with `sellingPlanGroup`. I hope that helps. Let me know if you have more questions.

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