#chiefwhitecloud_api

1 messages ¡ Page 1 of 1 (latest)

wraith pawnBOT
#

👋 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.

blissful quartz
#

hi there, taking a look at this now

#

do you have an example request ID for updating the subscription?

hasty citrus
#

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

blissful quartz
#

thanks, yeah I would try setting proration_behavior to none on that request and see if it gets you the results you want

hasty citrus
#

I just tried that and no invoice was generated

#

req_nsqGvcdkiqPIMv

#

I want to create an invoice for the current state of the subscription

blissful quartz
#

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?

hasty citrus
#

Not ideally. Is there another way to avoid the customer being credited for the initial unpaid invoice?

blissful quartz
#

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

hasty citrus
#

ok

#

trying that ow

#

now

#

ok

#

that works!

#

Thank you

blissful quartz
#

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