#manic-pixie-dream-bananarchist_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/1294356303640268822
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, sorry for the delay
Just to be clear, is your goal to cancel Subscriptions or to send Invoices on a schedule you decide ad hoc?
we're sunsetting the product entirely
so want all subscriptions set to renew after 10/15 to not renew
not sure if i can do that by just archiving the product or something, but doing it on that level rather than per customer would be great
I see, okay. No, archiving the Product or Price will only block you from creating net-new Subscriptions with that Product or Price
gotcha, so i need to write a script to go through everything active?
Yep. You can either go through each active Subscription and update it so it cancels at the end of the current period: https://docs.stripe.com/api/subscriptions/update#update_subscription-cancel_at_period_end
Or cancel immediately: https://docs.stripe.com/api/subscriptions/cancel
will that
- prevent trials from converting (and charging)
- stop failed payment auto retries
Once a Subscription is canceled, no further new Invoices will be generated. In your script, you should make sure to not only update active Subscriptions but trialing Subscriptions as well
๐
As for failed payment auto retries, we'll stop automatic collection on Invoices but won't void any finalized Invoices.
This means that if a customer uses the Hosted Invoice Page to access an Invoice and attempt to pay, they won't be blocked from doing so.
so the invoice will still show as due but it will not attempt to charge a failed payment again?
okay so i should cancel invoices too
thank u for the assistance, this is super helpful
You should void the invoices, yes: https://docs.stripe.com/invoicing/overview#void