Swapping plans and updating billing cycle requires new subscription to be created?

204 views
Skip to first unread message

Eugenia

unread,
Jul 6, 2015, 9:04:42 PM7/6/15
to api-d...@lists.stripe.com
Hi all,

I wanted to confirm that in order to reset the billing cycle after swapping plans, the old plan to be cancelled and the new plan added (and therefore a new subscription_id generated). It appears simply swapping the old plan to the new plan maintains the billing cycle.

Matthew Arkin

unread,
Jul 6, 2015, 9:15:14 PM7/6/15
to Jake K.
You could use the billing cycle anchor to do this and optionally prorate the subscription.

So if I subscribe someone to plan A which is $20 and then immediately upgrade them to plan B which is $70, they'd be charged a $50 proration (since they'd have a credit for unused time), and the billing cycle would restart.

Example request:

curl https://api.stripe.com/v1/customers/{{customer id}}/subscriptions/{{subscription id}}    -u {{api key}}:    -d plan=planB -d billing_cycle_anchor=now

You can also pass prorate=false to that


On Mon, Jul 6, 2015 at 11:47 AM, Eugenia <ek...@classpass.com> wrote:
Hi all,

I wanted to confirm that in order to reset the billing cycle after swapping plans, the old plan to be cancelled and the new plan added (and therefore a new subscription_id generated). It appears simply swapping the old plan to the new plan maintains the billing cycle.

--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at http://groups.google.com/a/lists.stripe.com/group/api-discuss/.

To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.

Eugenia

unread,
Aug 6, 2015, 10:47:06 AM8/6/15
to Stripe API Discussion
Hi Matthew- where might I read more on the billing_cycle_anchor param? 

Remi J.

unread,
Aug 6, 2015, 10:58:37 AM8/6/15
to api-d...@lists.stripe.com
Hey Eugenia,

The option Matthew mentioned is not publicly documented at the moment
but it was discussed previously on the list here:
https://groups.google.com/a/lists.stripe.com/forum/#!msg/api-discuss/PsKhHPI7XIQ/viyqVPNwplYJ

All the best,
Rémi
Reply all
Reply to author
Forward
0 new messages