#Neetesh
1 messages · Page 1 of 1 (latest)
The subscription is still active and not cancelled yet, so the customer can still make payment: https://dashboard.stripe.com/test/subscriptions/sub_1N5lk0PRH5tgkvBZWV3nJdIe
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
but why is it active when I have cancelled it
you can see the events for this subscription
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
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 ?
the cancel_at_period_end means the subscription will cancel at the end of that billing cycle
if you want to cancel now or at a particular time, then you should use https://stripe.com/docs/api/subscriptions/update#update_subscription-cancel_at
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
does next period/cycle starts before invoice is paid ?
Yes, the invoice will be generated on the billing cycle anchor and we'll attempt auto payment ~1 hour after
what if someone cancels subscription in between with cancel_at_period_end set to true
what happens then ?
In between when?
In between invoice drafted and invoice paid
Then it would cancel at the end of the new period
Yes
You can't, that's just not how our Subscriptions work. What's the specific concern?
whats the cutoff time before we can cancel a subscription with cancel_at_period_end set to true
I don't understand the question? Cut off before when?
so the next cycle doesn't take place?
I guess before the billing_cycle_anchor timestamp
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
Sounds right, yep. If you have an example I can check
So you set cancel_at_period_end here: https://dashboard.stripe.com/test/logs/req_DnUS3rBcp9DuW9
Which was after the current_period_start
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
are you there?
just one more question
will invoice.created event happen only after new billing cycle has already started ?
Correct, yes