#hellotika
1 messages · Page 1 of 1 (latest)
Hi 👋
Cancelling a Subscription does not automatically generate a refund. Instead it creates a Customer credit note. What is the overall behavior you are trying to achieve here?
i think we'll just call update subscirption with the following to get stripe subscription to stop
- cancel_at_period_end: false
- proration_behavior: "none",
is this correct?
Yes that would cause the subscription to cancel at the end of the current billing period
we want to have stripe stop the subscription immediately though, not end of current billing period
maybe we just call delete subscirption?
You can use the cancel_at parameter insteand which uses a timestamp: https://stripe.com/docs/api/subscriptions/update#update_subscription-cancel_at
But if you are in the middle of the billing cycle it will generate Customer credit
we can invoke the customer balance API to zero out that credit right after?
If that is what you want, yes
thank you, i will follow up with stripe revenue recognition behavior since this channel does not offer advice for that perspective