#wsnookum_api
1 messages · Page 1 of 1 (latest)
đź‘‹ Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đź”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1265880429102108672
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, are you talking about this API https://docs.stripe.com/api/subscriptions/resume ?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes that one
It doesn't execute successfully for a subscription with paused collection.
From StripeGPT, it says that ResumeAsync() resumes a subscription with paused collection
What error did you get? Can you share the request ID (req_xxx) of the error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Stripe.StripeException : You can only resume a subscription if it is paused.
req_CFn3TnH51J8RZp
Is ResumeAsync() used for resuming a subscription with paused collection?
If not, what is it used for? And how do we get to it to pause?
Thanks for sharing the request ID. Checking it now
Pausing payment collection and subscription status with paused are two different things: https://docs.stripe.com/api/subscriptions/object#subscription_object-status
The paused status is different from pausing collection, which still generates invoices and leaves the subscription’s status unchanged.
Resume Subscription API only works when the subscription status in paused. However, sub_1PgIt6F6S39kYAQZzi4Iy33l only pauses payment collection, but its status still in active.
If you wish to unpause the payment collection, Resume Subscription API shouldn't be used. I'd recommend checking the guide here to unpause the payment collection with Update Subscription API: https://docs.stripe.com/billing/subscriptions/pause-payment#unpausing
How do you pause a subscription though? The pause where ResumeAsync() executes successfully?
As mentioned in https://docs.stripe.com/api/subscriptions/object#subscription_object-status:
A subscription can only enter a paused status when a trial ends without a payment method.
It's not possible to manually update the subscription to paused 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.
I see. So, Paused state occurs only if the subscription doesn't get paid in time. Then to resume a paused collection, we just unset Pause_Collection property with Update subscription. Is it correct?
paused status only happens when the payment method is not set onto the subscription when the trial ends.
to resume a paused collection, we just unset Pause_Collection property with Update subscription. Is it correct?
Yes, correct!
Thanks! That's all.