#Mike Burgess
1 messages · Page 1 of 1 (latest)
👋 happy to help
this is highly advanced as a pricing model and I'm unsure whether there's an easy way to model this in Stripe
I would strongly suggest keeping track of this in your own system
and reporting it once per cycle to the subscription
by using the add_invoice_items https://stripe.com/docs/api/subscriptions/update#update_subscription-add_invoice_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hey @storm berry thanks for the quick reply.
Yeah I am maintaining billing metrics in the system, so I have a definitive "source of truth" at all points of a billing cycle to say e.g. "you used 3.6 users @ £5/user = £18".
Can I update the additional invoice item as I go along, or would I need to remove it and re-add it daily as the figure changes?
Ideally I would like the next invoice to always reflect the cost as we know so far in that billing cycle.