#chiefwhitecloud_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/1425125623675748402
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there, taking a look at this now
do you have an example request ID for updating the subscription?
if you're not already doing so, you can try setting proration_behavior to "none" on the update to avoid the user getting credited
ok
I'll try that
right now it is set to the 'always_invoice'
Here is an example request id for the sub update. req_WgXrDkiQjWxaPc
thanks, yeah I would try setting proration_behavior to none on that request and see if it gets you the results you want
I just tried that and no invoice was generated
req_nsqGvcdkiqPIMv
I want to create an invoice for the current state of the subscription
ok, so you want to invoice the customer immediately for the update, without taking the previous unpaid invoice into account. is cancelling the subscription and creating a new subscription for the customer an option?
Not ideally. Is there another way to avoid the customer being credited for the initial unpaid invoice?
one moment while I look into that
ok, in addition to proration_behavior: none, try also setting billing_cycle_anchor: now on the update. that ought to generate a new invoice
excellent! do make sure you void the previous invoice when you do this, just to make sure the customer doesn't come back and pay the old invoice