#__rxor__
1 messages ยท Page 1 of 1 (latest)
hi there!
you can use this: https://stripe.com/docs/api/subscriptions/cancel
note that once cancelled customer can still pay past invoices. if that's not what you want, you'll need to void past invoices
Yeah I saw this one. When im getting stripe.Invoice.upcoming(subscription="sub...") there is no invoiceitem id in response and I cannot delete future invoice
How is that possible that my app fired subscription delete to stripe API and subscription was not cancelled
can you share the request ID (req_xxx)?
Okay sec i Need to contact my support team they found this one
I meant void past invoice, not future invoice. it's not possible to void invoice that don't exist yet.
Oh so I need to list invoices that's starts after actual id and cancel this one?
first cancel the subscription with https://stripe.com/docs/api/subscriptions/cancel
then if needed:
- list invoice that haven't been paid for that subscription with https://stripe.com/docs/api/invoices/list
- void each of these invoices with https://stripe.com/docs/api/invoices/void
happy to help ๐
One last question if the invoice is created for the future will I be able to void it? Doc says that only finalized invoices can be voided
I don't understand. if you cancel the subscription, then there will be no future invoices
Hmm maybe I was misled because the support team that reported bug said:
The subscription was cancelled but cancellation date is set for the future and customer Was charged with the next invoice
Is that even possible?
I don't know. can you share a Subscription ID (sub_xxx) with this issue?
okay I will back when they send me one. Thank!
sub_1NmKDGJZ9pJk48QCdw0VO51O
This one dont have future invoices but is it possible that there is cancellation for the future and future invoice that will charge customer can exist?
or this one
sub_1NlrNvJZ9pJk48QCEJm4TBSP
your original question was how to cancel a subscription immediately, which I answered. but yes it's also possible to cancel subscriptions in the future if needed.
for sub_1NlrNvJZ9pJk48QCEJm4TBSP you set it to cancel at the end of the current period (so 31 december)
Okay so I have function defined
return self.stripe.Subscription.delete(subscription_id)
How did it happen that this subscription is set to cancel in the future?
Shouldnt be happen immediately?
sorry for stupid questions im just confused
function that returns* /\
looks like your customer used the billing portal to cancel their subscription. and your billing portal settings cancel the subscription at the end of the period instead of immediately.
Oooooh.... didnt know that works that way....
are there any settings for billing portal cancellation so I can set it immediately?
which billing portal are you using? the no code one, or the one with code?
the no code one. Just returns customer a link for it and he enters his email
then yes it can be configured int he dashboard https://dashboard.stripe.com/test/settings/billing/portal