#caze_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/1243275506175049789
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
This is my current code
I was wondering if I can charge the customer on the same month, and not on the next one (just in cases that the new plan price is greater)
Yep, you can do that with billing_cycle_anchor: 'now' with the plan/price change, which will trigger a billing cycle renewal and invoice for the entire amount
You need to decide if you want to prorate (credit) for the partial fees of the current period or not
The default is to credit for the prorated period, but you can disable this with proration_behavior=none
I think the proration is fine, but If I disable It, I get refunded for the first plan and charged for the next one?
Like:
I buy a plan for US 120.00
then I change it to US 150.00
I get the 120 back and I am charged 150?
It's prorated based on the time elapsed so far in the current period. ie, if you base plan was $10/mo started on may 1 and on may 15 they switched to a $50/mo plan, do you want to credit $5 for the half month, for a total payment of $45, or ignore that partial month?
I think the proration makes it all easy
If I leave that way, does it create a new invoice?
Or it just creates a new invoice if I change plan without proration?
If you reset the billing anchor with now to cycle the subscription immediately, and invoice will be created no matter what you choose for proration credits
thanks!
Does each change on this triggers this webhook?
Which one(s) -- you would only get one of the success/failure set (leaving aside retries).
If I change the plan and the new invoice succeed or failed