#daniel-nissenbaum_webhooks

1 messages ¡ Page 1 of 1 (latest)

unique notchBOT
#

👋 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/1328462098103009423

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

austere gust
#

If you set up the balances permission when saving the bank account I think you should be able to do that. Can you tell me more about how you would like the billing cycle anchor to act here? One option may be pausing payment and unpausing it later

sacred night
#

yea so we have a trial right, and right as the trial is ending, we would like to run a balance check. What we would like to do is either switch the user to a monthly plan or switch the billing anchor so that the first payment aligns with payday and is less likely to fail. Or if all that fails, we would like to i guess just cancel the subscription so we dont get returned ACHs

#

It would also be great if this strategy could apply to renewals as well

austere gust
#

Reading that, it may be easier to listen to invoice.upcoming and extend the trial period if need be

#

You can also just create a new trial period after the draft invoice has been created but that will create a new trial period invoice and such, so things would be a bit more cluttered.

sacred night
#

when does the invoice.upcoming get fired?

#

would want to do the balance check pretty close to the time we bill the user

#

like an hour or so before

austere gust
sacred night
#

looks like that could only be 3 days before

austere gust
#

Oh yeah but the shortest time period is 3 days

#

yep

sacred night
#

yea we had done this with trial_will_end

#

but its just not close enough

austere gust
#

Ah gotcha

sacred night
#

we found there was a pretty large change in balance over those three days

#

quite a bit of variance

#

was thinking about the invoice.created event which is in draft for 1 hour right?

#

but im not sure what can and cant be changed during that hour

#

like if i shifted the billing period, or added trial days, idk if it would work or not

austere gust
#

You can definitely add trial period days. I don't think we would finalize the invoice in that case