#ambi_best-practices
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/1327011844065464402
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there! I'll be with you shortly
no problem!
Thanks for your patience. Do you have the Subscription's id available to share? This will look like sub_abc123
Sure. one sec
customer:cus_REKHGDeFqg9BuE
subscription:sub_1QLrdS2L54HYtpsWRpFQjfBI
thank you!
To answer your question about whether you can set the billing_cycle_anchor without creating an Invoice, the answer is no. Whenever a Subscription moves to a new billing period, which moving the billing cycle anchor to 'now' does, an Invoice will be generated. There are ways to reduce the amount of the Invoice to $0, but you can't prevent an Invoice from being created.
I see, thanks for the confirmation. Is there anything that comes to mind that could help in my case?
Could you outline what your ideal scenario would be in this context?
To move the billing cycle to the time of the retried invoice success. So for example in this case it would be moved 7 days up. Since we do not provide the service to our users if their subscription is not active. This is an issue since then the users are paying for 7 days less, making the subscription last 23 days instead of 30
I think the next best option would be to reduce the amount of the Invoice that is generated to $0. There are a couple of ways to do this; you could either apply a discount for 100% (one-time usage) to the Subscription immediately before moving the billing cycle anchor,. You could also add enough credit to the Customer's Customer Balance to fund the Invoice that's generated by moving the billing cycle anchor, but you will have to be able to accurately calculate the amount
So, using the one-time 100% off coupon is much simpler to implement.
Here's the doc on Coupons: https://docs.stripe.com/billing/subscriptions/coupons
I see, so the invoice that would be generated due to setting the billinc_anchor_cycle would be free. that would work
is it worth looking into this aswell? https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases#upgrading-subscriptions
I noticed that you were using the Billing Customer Portal. Subscriptions created by Subscription Schedules can't be cancelled or updated in the Customer Portal, so if that functionality is important to you, Subscription Schedules are not a good option here.
the Customer Portal's limitations are called out in the docs here: https://docs.stripe.com/customer-management#customer-portal-limitations