#marek8459
1 messages · Page 1 of 1 (latest)
I assume by price you mean usage information?
Yes. I'm getting usage via API, but I cant find a way to obtain next invoice price
Likely via: https://docs.stripe.com/api/invoices/upcoming
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Just pass subscription parameter and it should return an Invoice object reflecting the current totals for the next invoice
and price should be stored in the total key? It seemed to me that everywhere the usage was displayed, equal to 10000, and the expected price was 1000. But I will check that and come back with an answer. Thanks for the quick reply. Can I reply to this thread later or write another post?
We keep threads active for ~30 minutes
Yes, total will reflect the total due. There'll be a breakdown in the lines list
ah, I get it now. It's int but I was looking for a float. Yes, in JS 😄
Thx