#keithm5699_api

1 messages · Page 1 of 1 (latest)

marsh sapphireBOT
#

đź‘‹ 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.

left moss
haughty quail
#

yea sorry, the subscription stays active but the invoices get voided / cancelled

left moss
#

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

haughty quail
#

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

#

We figured it's due to the payment behaviour change as we see this automatic event here: evt_1Qxcu42QDJ60PDJCqndeLeuH

left moss
#

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

haughty quail
#

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?

left moss
#

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.

haughty quail
#

ok, if instead we listened to lets say when an invoice was finalized and then we pause collection would that work?

left moss
#

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