#JacobJeppesen
1 messages · Page 1 of 1 (latest)
Hi
Can you please share an Invoice Id ?
I only have it as upcoming invoice in our test setup for now. But here is a screenshot of it:
Part of it is in Danish, but I hope you can see the point 😉
Can you share the subscriptionId ?
Sure: sub_1MxmtDBqWSGInFmhmc7bCMsb
thanks for sharing, checking...
Thanks for your patience, It looks like this is expected:
If quantity is 0, the total amount is 10 USD regardless of tiers_mode. We always bill the first flat fee tier when quantity=0. To bill 0 when there’s no usage, set up an up_to=1 tier with an unit_amount equal to the flat fee and omit the flat_amount.
https://stripe.com/docs/products-prices/pricing-models#:~:text=If quantity is 0%2C the total amount is 10 USD regardless of tiers_mode. We always bill the first flat fee tier when quantity%3D0. To bill 0 when there’s no usage%2C set up an up_to%3D1 tier with an unit_amount equal to the flat fee and omit the flat_amount.
Thanks. So I guess the way to do it the way I would like would be with 2 prices for the same subscription (?). I.e., a standard price for the fixed fee and then graduated pricing for the extra units.
Do you know how usage reports works when having a subscription with 2 prices (one metered and one standard price)? Would it just work out-of-the box, and ignore the standard price when making the usage reports?
yes
When creating a usage record, you need to pass the subscriptionItem, so yeah you can have metered and normal price in the same subscription:
https://stripe.com/docs/api/usage_records/object#usage_record_object-subscription_item
Got it. Thanks for the help!