#joschi_best-practices
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/1265292751029669992
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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
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?
You get invoice.created when the draft is created, and you can modify it before it is finalized