#anthonydreams_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/1337075755804528711
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
What do yu want to happen when you ship & reset the billing cycle? a "free" period to start since you already collected for the first period?
Yes, it's like we sell software to process data but also the hardware to collect it. So, your software subscription should start after you receive the hardware, but the charges should happen all at once
Gotcha. Ok. So there's no way to reset the cycle without creating some kind of invoice, no, that's kind of the purpose of the billing cycle. But there are several ways you can ensure that invoice is for a zero amount. Let me describe those very briefly and you can tell me which appeals to your use case, and i can explain more.
We use the quote API -> convert to subscription btw
- Before resetting the cycle, you apply customer balance credit equal to the invoice total. The get an invoice for $100 less their 100 credit and nothing is due. Next renewal happens as normal.
- When resetting the cycle, you also apply a one time 100% coupon to discount the first month as already paid. Renewal happens as normal.
- When resetting the cycle, you also switch them to a free "first month paid" price for $0, then you set up a subscription schedule to switch them to the regular price for the next billing period
In all cases, you'd need to disable prorations in the update to avoid giving prorated credit for the initial paid period
I was also going to suggest you defer the subscription creation entirely, but that doesn't really work if youre using quotes
this is what i'm doing to reset the cycle, const updateParams: Stripe.SubscriptionUpdateParams = {
billing_cycle_anchor: 'now',
proration_behavior: 'none',
};
Sure, and the result would be an invoice for the full price amount
the second workaround basically is adding the discount with 100%
which i imagine is what you want to avoid
(since the customer alreayd paid for the first period of service post-delivery)
Yes, and i will say this is the simplest option, if you're ok if a "first month paid" coupon discount appears on the invoice
Sounds feasible, I think we going to use the approach of the discount, thank you so much!