#Neetesh

1 messages · Page 1 of 1 (latest)

red magnetBOT
midnight forge
woeful lichen
#

but why is it active when I have cancelled it

#

you can see the events for this subscription

red magnetBOT
proud quiver
#

the subscription was set to cancel_at_period_end

#

which is 2023-05-11 08:17:48 UTC

#

we're right now only at 7:41 am UTC

woeful lichen
#

this subscription was created on 09/05/2023, 08:17:48
first invoice payment was paid successfully,

I fired cancellation api call before the payment of second invoice, although draft was created.

So in this situation does stripe renews the subscription, regardless of cancellation request and cancels only in next cycle ?

proud quiver
#

the cancel_at_period_end means the subscription will cancel at the end of that billing cycle

woeful lichen
#

does next period/cycle starts before invoice is paid ?

red magnetBOT
sleek tree
#

Yes, the invoice will be generated on the billing cycle anchor and we'll attempt auto payment ~1 hour after

woeful lichen
#

what if someone cancels subscription in between with cancel_at_period_end set to true

#

what happens then ?

sleek tree
#

In between when?

woeful lichen
#

In between invoice drafted and invoice paid

sleek tree
#

Then it would cancel at the end of the new period

woeful lichen
#

ok that means cycle starts regardless of payment done or not

#

?

sleek tree
#

Yes

woeful lichen
#

so how to handle this scenario?

#

I don't want next cycle to happen.

sleek tree
#

You can't, that's just not how our Subscriptions work. What's the specific concern?

woeful lichen
#

whats the cutoff time before we can cancel a subscription with cancel_at_period_end set to true

sleek tree
#

I don't understand the question? Cut off before when?

woeful lichen
#

so the next cycle doesn't take place?

sleek tree
#

I guess before the billing_cycle_anchor timestamp

woeful lichen
#

ok, that clears things a lot

so maybe what has happend is, I have cancelled after this cutoff time and thats why new cycle has already begun

sleek tree
#

Sounds right, yep. If you have an example I can check

woeful lichen
#

sure

#

subId : sub_1N5lk0PRH5tgkvBZWV3nJdIe

sleek tree
woeful lichen
#

makes sense

#

thanks

woeful lichen
#

are you there?

#

just one more question

#

will invoice.created event happen only after new billing cycle has already started ?

sleek tree
#

Correct, yes