#nachofranco14
1 messages Β· Page 1 of 1 (latest)
Can you elaborate on the exact issue?
This is the documentation https://stripe.com/docs/api/subscriptions/resume?lang=python and this is the error Request req_HUBWSh2HFdIFHb: Received unknown parameter: billing_cycle_anchor
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You are hitting the wrong endpoint: https://dashboard.stripe.com/test/logs/req_HUBWSh2HFdIFHb
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
and this is the code I'm executing (consider that the api_key has been set to the stripe module stripe.api_key = "the_key")
s = stripe.Subscription.retrieve("sub_1MWGLcBEDYDqpisubMFy5bpb", billing_cycle_anchor="unchanged")
Oh the documentation is wrong then
I'll flag it to the team
retrieve is for fetching a subscription
do I earn a t-shirt?
jokes aside, how can I resume it?
I'm using the pyhton client
(you can gift me the Stripe tshirt anyway if you want π )
Haha
I think it's .resume
But could be wrong. Can you try?
It's hard without the docs haha
2.76
Wasn't added until 5.1.0
I just updated it
resume should work on the latest version
could you pay a look at req_wpLu53z1lSFPW1?
the subscription is paused but it claims that it isn't π¦
Looking
Oh
So this is a bit confusing actually:
https://stripe.com/docs/billing/subscriptions/pause#:~:text=Subscriptions with pause collection canβt move into status%3Dpaused. View Use trial periods to learn about free trials of subscriptions that enter status%3Dpaused after a trial ends without a payment method attached
So the /resume endpoint is just for that above scenario when subscription is in status=paused
What you want actually is this:
Paused collection isn't the same thing as status=paused, but this is a very recent change
ah I see
so what's the difference between them? should I changethe current pause of the collection to the new one?
No you're doing it the right way now
status=paused isn't meant for you to manually pause a sub
It's just for the trials without payment methods scenario
So this is the way to go for your usecase: https://stripe.com/docs/billing/subscriptions/pause#unpausing
wait
okay it works fine
thanks
still is not clear what's gonna happen with the billing cycle
will it keep the same it had?
(the same for the invoices if they were kept as draft)
It should stay the same, but you can always check this param on the Sub: https://stripe.com/docs/api/subscriptions/object#subscription_object-billing_cycle_anchor
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
great
thanks π
let me know where should I send my address to in order to receive thetshirt
I'd like it to be black, XL and with Stripe in white
Haha