#marek8459

1 messages · Page 1 of 1 (latest)

lament oracleBOT
thorny tiger
#

I assume by price you mean usage information?

wraith niche
#

Yes. I'm getting usage via API, but I cant find a way to obtain next invoice price

thorny tiger
#

Just pass subscription parameter and it should return an Invoice object reflecting the current totals for the next invoice

wraith niche
#

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?

thorny tiger
#

We keep threads active for ~30 minutes

#

Yes, total will reflect the total due. There'll be a breakdown in the lines list

wraith niche
#

ah, I get it now. It's int but I was looking for a float. Yes, in JS 😄
Thx

thorny tiger
#

No problem, glad I could help!

#

Yes, an integer in the lowest currency unit (i.e. cents/pence)