#NearZXH

1 messages ยท Page 1 of 1 (latest)

normal crownBOT
whole fox
#

Hi
There isn't a feature for that. But I think you can simply achieve that in your integration by displaying the monthly price / 30...

stone dawn
#

but the usage everyday has great difference, such as $0.50 1st day, $10.00 2nd day, $80.05 3rd day. So I can't just show the average value

whole fox
#

ah you are using metered pricing... I don't think there is an exposed API for that, probably you should monitor this in your integration if you want to display daily (or other aggregated data) records

stone dawn
#

Yeah, i'm using metered pricing. But the data I have is usage record, but the data i show to the user is the cost(quantity * unit price).

#

The method I can think of at present is to save a copy of each usage record I upload to a local database, and then calculate the cost, discounts, and so on locally based on the unit price. After calculating, I will group the cost by day and display them to the user.

stone dawn
#

And this is also strange. it has a create usage record api and summary api, but has no usage list api.๐Ÿ˜ซ

#

Thanks for your help. It has troubled me for one day.๐Ÿ‘

whole fox
#

np!