#riptired_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/1240392500611649547
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Yeah you can list Subscriptions for a Customer via the API: https://docs.stripe.com/api/subscriptions/list#list_subscriptions-customer
So up to you whether to store the Subscription ID or to retrieve it via listing w/ Customer ID
np!
1 more confirmation, if I solely want to cancel the subscription for future months without refunding or prorating the rest of the current cycle I would just use the 'stripe.Subscription.cancel(subscription_id)' without additional parameters correct? Additionally that will also send an email to the customer indicating that their subscription has ended correct?
If you call .cancel() then it will cancel immediately. Do you want to cancel immediately or at the end of the billing cycle?
And if you don't want any proration and want to cancel immediately then you set prorate: false when you call this method: https://docs.stripe.com/api/subscriptions/cancel#cancel_subscription-prorate
ex. a customer signs up day 1 and cancels the subscription on day 3. I just want to cancel the subscription for the next billing cycle so they have access to the product for the rest of the current cycle and do not get any refund for the initial subscription payment
Gotcha
Then you want to update the Subscription and set cancel_at_period_end: https://docs.stripe.com/api/subscriptions/update#update_subscription-cancel_at_period_end