#joschi_best-practices

1 messages ยท Page 1 of 1 (latest)

upbeat radishBOT
#

๐Ÿ‘‹ 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/1265292751029669992

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

cyan moat
#

There is no system for doing that automatically that i am aware of.

#

You would need to either:
1/ approximate this by putting ~$3.33 min spend on each meter/price
2/ use a separate $10 flat price item, and once the invoice reaches $20 you can issue a discount/credit for the $10, or the amount need to get down to $10 at end of month

prisma cape
#

Thanks for your response! โค๏ธ

I thought about the first option, but this would penalize customers who only use one of the token types and none of the others.

Regarding the second option, do we get any event (via webhooks) which would allow us to automate this at the end of the billing period for each subscription/invoice? Something like "prepare-invoice" which we can process and provide some customizations to the to-be-created invoice?

cyan moat
#

You get invoice.created when the draft is created, and you can modify it before it is finalized

prisma cape
#

I see invoice.created exists. Is this the appropriate event to customize an invoice before it's sent?

#

Ah, thanks. ๐Ÿ˜†