#keithm5699_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/1378020417062703114
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Setting pause collction to void should keep the subscription active as far as I know
https://docs.stripe.com/billing/subscriptions/pause-payment#collect-payment-never
Let me look at the example request
That subscription was deleted via an API call - https://dashboard.stripe.com/logs/req_OPbwHgBZz8mlsE
yea sorry, the subscription stays active but the invoices get voided / cancelled
Existing invoices should remain unaffected. Can you share an example of the invoice you're looking at?
Ah wait
sorry
Any invoices before the resume_at date are voided
that's expected
https://docs.stripe.com/billing/subscriptions/pause-payment#collect-payment-never
All invoices created before the resumes_at date are immediately marked as void. Stripe won’t send any upcoming invoice emails or webhooks and the subscription’s status remains unchanged.
sorry the subscription I have an example of gets cancelled next month by our API but issue is when sending that payment behaviour invoices seem to be getting voided / cancelled
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
We figured it's due to the payment behaviour change as we see this automatic event here: evt_1Qxcu42QDJ60PDJCqndeLeuH
Yup, as I mentioned above - this is expected behavior with pause_collection[behavior]: void
The workaround here would be to use pause_collection[behavior]: keep_as_draft instead and void individual invoices
I don't believe there's a way to keep existing invoices open while pausing collection because Stripe would still try to continue charge these invoices
hmm ok, sorry maybe we're doing something stupid here then. Basically what we are trying to achieve is to let someone collect lefts say 17 months worth of invoices, on our end we're listening for the invoice created webhook and then using that to try an effectively stop the subscription from creating any new invoices while allowing it to still re attempt / collect on any of the previous invoices, does that make sense?
I believe when invoice is created on stripe it can stay in draft for like an hour so if we used keep_as_draft would that not block it fro mbeing finalized / an attempt to pay it being made?
Correct. If you use keep_as_draft the invoice will stay in draft mode until you manually update the invoice to advance automatically.
I believe when invoice is created on stripe it can stay in draft for like an hour
That's true if you've not paused collection
with collection paused, the invoice will stay in draft indefinitely.
ok, if instead we listened to lets say when an invoice was finalized and then we pause collection would that work?
I'm not sure what happens when you pause collection with a finalized invoice. You can test this all out in test mode with test clocks if you've not done that yet - https://docs.stripe.com/billing/testing/test-clocks
The other workaround I can think of which is kinda hacky is that you put the subscription in trial.
A trial generates $0 invoices
but it doesn't affect existing invoices