#Vinz
1 messages ยท Page 1 of 1 (latest)
yep sub_1MqCZHIP6C7BiREFWUmFTpzZ
th subscription status remains unchanged https://stripe.com/docs/billing/subscriptions/pause#unable-provide-services
according to the doc. So How can I get status to "paused"
do you mean on the dashboard or by API?
on Pause the status doesn't change
so basically on the dashboard you will see that the subscription is "Paused" near the "Active" status where as in the API you would need to look at this field https://stripe.com/docs/api/subscriptions/object#subscription_object-pause_collection-behavior and see whether it's not null
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
OK @lusty crow , so I guess you should remove the "paused" status in the doc https://stripe.com/docs/api/subscriptions/object#subscription_object-status
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
hmmmm, let me check that
you might be on to something here
because the first line in the description there is
Possible values are incomplete, incomplete_expired, trialing, active, past_due, canceled, or unpaid.
whereas the list has "paused"
sure, it's a typo, thanks for the flag.
we should mention paused in the text description as well.
nope, since it's impossible to get 'paused' as a status
@arctic fox see @lusty crow answers and doc: status won't change on pause collection
k, give me 20 minutes to investigate
the paused status is returned when you're using the brand new feature https://stripe.com/docs/billing/subscriptions/trials#configure-free-trials-without-payment-methods-to-pause to pause a subscription at the end of a trial if no payment method is provided.
ideally it would also apply to subscriptions you pause the other way(the links posted earlier) but it can't as that's a breaking API change(you'd start getting this new status that existing code using Stripe doesn't recognise) so it's not applied retroactively(it's only used if you "opt in" by using that new trial feature).
We'll probably clean this up in a future API version, where we can make the breaking change.
OK thanks @arctic fox I've got an old API version (2020 and I'm afraid to update it don't want to break anything in prod)
there's nothing to update right now at least.
OK, what if I do an update : is the old way to pause subscription compatible with new API ?
there's no update you need to do
there's really no problem here and the way of pausing the subscription using the pause_collection field works, and will work fine
it's just that it doesn't change the subscription status to paused, that is all.
if you want to keep track of if the subscription has been paused that way, the best option is to set some metadata on the Subscription to indicate that to your code.
maybe in future we will release a new API version where the status does change to paused, but you don't need to worry about that.
thank you