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.

Re: Making changes to subscriptions created using selling plans

Solved

Making changes to subscriptions created using selling plans

aave
Shopify Partner
3 0 0

Hiya, we're building a Shopify app for a store to manage subscriptions on top of the subscriptions api. Subscriptions are created using the selling plans and Shopify checkout. Now we want to use our app to manage the subscriptions e.g changing the delivery frequency. To do this, we first created a subscription draft using the `subscriptionContractUpdate` mutation. Then we tried to update the selling plan, it worked but didn't change any of the delivery intervals, just the selling plan name and id. Then we directly updated the intervals. The changes went through but the next billing date would not update, nor are any new orders being created. 

So the question is, what is the correct way to update a delivery frequency on a subscriptions created using selling plans? Will futures orders be automatically created once the changes are made or is there something else we need to do?

 

Accepted Solution (1)

Brian_S
Shopify Partner
171 21 44

This is an accepted solution.

You have to update basically every aspect of the subscription contract that you want changed (delivery and billing policy, next billing date, etc). You'll also have to trigger the billing attempts to create orders.  Almost nothing is done by Shopify's APIs for you. 

Brian Singer
CTO & Cofounder of Subscription Service - Awtomic

View solution in original post

Replies 4 (4)

Brian_S
Shopify Partner
171 21 44

This is an accepted solution.

You have to update basically every aspect of the subscription contract that you want changed (delivery and billing policy, next billing date, etc). You'll also have to trigger the billing attempts to create orders.  Almost nothing is done by Shopify's APIs for you. 

Brian Singer
CTO & Cofounder of Subscription Service - Awtomic
aave
Shopify Partner
3 0 0

So, does shopify not create recurring orders for products sold via selling plans? Or is it only when we make a changes to the contract to need to start creating orders via the app?

Brian_S
Shopify Partner
171 21 44

Shopify will never automatically bill a subscription contract. 

 

Take a look at how to model the app here: https://shopify.dev/docs/apps/selling-strategies/subscriptions/modeling#lifecycle-of-a-subscription-...

 

specifically look at the "App" column to see the basic responsibilities of the app

Brian Singer
CTO & Cofounder of Subscription Service - Awtomic
aave
Shopify Partner
3 0 0

Ty.