#thefyrewire_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/1481644939333861528
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there! cancel_at_period_end is just one way of cancelling a subscription, so depending on how you're handling cancellations, it may or may not be relevant
for example, it's also possible to specify a cancel_at timestamp in the future - in which case cancel_at_period_end won't be true
but having said that, if you do use cancel_at_period_end, then yes, the current_period_end on the Subscription Item is the timestamp when the period ends, and when the subscription will be cancelled
https://docs.stripe.com/api/subscription_items/object#subscription_item_object-current_period_end
Gotcha, thanks! What is the use-case for cancel_at? Would that be like, cancel specifically after X number of billing cycles? For our implementation we'll basically only be letting users cancel their current subscription, which is either only monthly or yearly, so I think hopefully cancel_at_period_end covers it
cancel_at allows you to set a future cancellation date that's agnostic to billing cycles (i.e. if you want the cancellation to happen mid-cycle)
but this probably isn't relevant for your use case by the sounds of things! just wanted to mention that cancel_at_period end isn't always set, depending on how you handle cancellations
the different ways to cancel are laid out here, if you're curious: https://docs.stripe.com/billing/subscriptions/cancel
Understood, thank you for the heads up! 