#secretsquirrel
1 messages ยท Page 1 of 1 (latest)
Next time you can use the the existing thread you still have open ๐
The only way to do this would be by creating a usage-based price (since those are the only prices that are billed at the end of the cycle)
Got it.
I guess I could also create a trial period for the first period to create kinda the same thing?
Kind of, but then that leaves you in a a bad state for the last invoice
Yeah that's no good
So I could create a usage-based price and then just post a single usage for the "flat rate" cost to mimic the flat rate functionality.
Yup! That's what I'd try - and you can use recurring.aggregate_usage: last_ever so you only have to specify the usage once (https://stripe.com/docs/api/prices/create#create_price-recurring-aggregate_usage)
But there's also downsides to this approach - we don't do prorations for metered prices
So if that's something you were relying on you'd have to do some workarounds to get it to work as expected
Yep, that's a great call out. I'll start with that!
๐