#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/1266010819993276516
๐ 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.
- joschi_best-practices, 1 day ago, 8 messages
hi there!
The unit price currently says "Starts at $0.00 per unit + $10.00 / month" when this price model.
- When assigning a flat fee for the first tier, will customers always have to pay the flat fee even if 0 units were used?
yes- Our per-unit price is very low with $0.40 per million or $0.0000004 per unit, does this work and can the price description be customized?
what do you mean by "does this work"? have you tried it in test mode?
Yes, I've tried it in test mode and it looks like it's working. ๐
I'm more concerned about the price description saying "$0.00 per unit" which is of course correct when rounding to 2 decimal places but which looks a bit weird on an invoice.
The calculation in the preview of the pricing model is also correct.
but which looks a bit weird on an invoice.
agreed. where does this show up exactly. on the Invoice itself?
Yes, on the invoice as "Unit Price"
Not sure if we could change this with the invoice templates. Do you know if this is possible?
Yes, on the invoice as "Unit Price"
can you share a screenshot?
Sorry for the delay. Had to run the simulation again.
Here it says "Unit price $0.00" due to rounding to 2 decimal places.
This is of course correct, but looks weird to the customers.
Ah, wait. I think I got that one wrong. ๐ค
Is it possible to report usage to a meter in simulation mode? Or would I have to report to the regular meter (in test mode) for the simulation to pick it up?
๐ stepping in for soma as they need to step away
When you say "simulation mode" what do you mean?
I'm referring to the test clocks (https://dashboard.stripe.com/test/billing/subscriptions/test-clocks) we can use to simulate a billing period.
Gotcha then yes you can report usage with Test Clocks
How can I report the usage?
https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage?lang=cli#recording-usage โ If I used Stripe CLI for this, how can I simulate the usage in different billing periods?
Would I have to report usage, then advance the simulated clock to the next billing period, then report usage again, then advance the simulated clock again?
Yes
You pass a timestamp with a Meter Event: https://docs.stripe.com/api/billing/meter-event/create#create_billing_meter_event-timestamp
Got it, thanks!
https://docs.stripe.com/api/billing/meter-event/create#create_billing_meter_event-timestamp says that the timestamp can be most 35 days in the future. So if my simulation already proceeded further than 35 days (for example two monthly billing periods), I'd have to start from scratch, right?
Yes
Or just record for the current period
And ignore the first ones that already passed
Okay, let me try that and I'll come back if I have more questions.
Thanks a lot!
Sure thing!
Awesome. Seems to work as expected. Thanks again for your help!
Sure thing
One last question: Due to the large numbers in unit quantity, the numbers with the default invoice template look quite unwieldy in the description.
Can this be modified with a custom invoice template?
Hmm I'm not sure about that -- we really only focus on the API so I don't know much about the Invoice templates themselves.
I think your best bet is to test it out (I'd have to do the same)
https://docs.stripe.com/invoicing/group-line-items#limitations says:
You can only apply CEL expressions to invoices created from the Dashboard.
Does this mean automatically create invoices for monthly subscriptions cannot use this feature?
Yes if you flip to the API tab you can see that you can request beta access