#_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/1348639413499986022
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
Hi, let me help you with this.
What is the behavior you're observing right now?
Do you have an example?
Here’s the behavior we want to achieve:
- A customer starts a subscription with a 14-day trial.
- On day 7 of the trial, we add an additional product to the subscription.
- After 14 days, when the trial ends, the invoice should include both:
- The prorated charge for the additional product added during the trial.
- The charge for the next billing cycle.
Hi, I want to confirm that I understand what you're looking for fully with an example:
A customer starts a $10 subscription with a 14-day trial.
On day 7 of the trial, we add an additional $20 product to the subscription.
After 14 days, when the trial ends, the invoice should include both:
The prorated charge for the additional product added during the trial, $5+$15=$20
The charge for the next billing cycle. $20+$30=$50 so charge a total of $50?
Are you still here?
Yes, I'm still here! Sorry for the delay.
No worries, can you confirm if the above is what you'd like to achieve?
A customer starts a $10 subscription with a 14-day trial.
On day 7 of the trial, we add an additional $20 product to the subscription.
After 14 days, when the trial ends, the invoice should include both:
The prorated charge for the additional product added during the trial, $5+$15=$20
The charge for the next billing cycle. $20+$30=$50 so charge a total of $50?
Yes, that's correct!
The total charge should include both the prorated amount and the next billing cycle's charge.
Thanks for checking!
Sure, is your goal to control the billing cycle anchor, https://docs.stripe.com/billing/subscriptions/trials#combine-trial-anchor ?
What you're looking for is not directly supported. After the trial ends, the subscription's billing starts which means that the subscription will start charging after that 14-day trial for $30.
This means that if you created the subscription on the ast of the month with a 14-day free trial, the customer will be charged for the subscription's amount starting on the 15th of the month.
If you'd want to charge the customer for the 'prorated' amount when the subscription is created, you could offer a discount
Sure, is your goal to control the billing cycle anchor, https://docs.stripe.com/billing/subscriptions/trials#combine-trial-anchor ?
I was trying to start a trial for an existing subscription, but I found thatbilling_cycle_anchorcouldn't be used in this case.
Are you saying that I can apply a coupon to the portion of the amount that I don’t want to charge?
Yes, but that means they will be charged once at the subscription creation. Then, another charge at the subscription's normal period.
I appreciate your explanation.
I will keep that in mind and conduct testing with a coupon.
I also recommend that you use Test Clocks: https://docs.stripe.com/billing/testing/test-clocks to advance time while testing