#OptimalSurprise-volume-pricing
1 messages · Page 1 of 1 (latest)
So I have a volume based object and I'd like to get the amount the invoice generated over the last billing period
Do you have an Invoice ID? There's no concept of 'usage' with volume pricing, it's just determined by the quantity set in accordance with the tiers defined on the Price
I haven't implemented the feature yet
so no invoice id per se
but I'd just like to understand how much they used something in the last period
Yes, the subsequent invoice would be itemised to reflect the usage throughout the period
in the lines data i have to use the quantity provided?
in the last generated invoice?
That would reflect the most recent 'usage' for the billing period yep. However they may have upgraded/downgraded mid cycle so there could also be proration items for more/less quantity, depending on how you handle that
You can simulate all this quite quickly with clocks: https://stripe.com/docs/billing/testing/test-clocks
What do you mean downgraded in the last cycle? Would this affect the quantity?
Well your customer may decide they want less (or more) of whatever your selling and as such you'd update the quantity of their subscription to reflect that: https://stripe.com/docs/billing/subscriptions/quantities
You can decide whether to prorate those changes, not sure how that works with volume pricing: https://stripe.com/docs/billing/subscriptions/prorations
Actually, don't think that applies as the volume based stuff is invoiced at the end of the billing period
So if you started the cycle with 1 and updated to 2 at the end of the cycle, they'd be invoiced for 2 regardless
Right, I think I understand
so to get the quanity used in the last complete billing period we just need to get quantity?
ah ok interesting
yep that makes sense
another q which is unrelated
are we able to use send_invoices to our connect customers?
sorry the end user for our connect customers
so on behalf of them?
Pretty sure you can, don't see why that wouldn't work: https://stripe.com/docs/connect/subscriptions
ah ok
that's interesting
i'll give it a go and see if it works
i was told previously that it may not work
Yeah I'm not sure tbh! Should be easy to test
np!