#NearZXH
1 messages ยท Page 1 of 1 (latest)
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...
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
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
Check this API:
https://stripe.com/docs/api/usage_records/subscription_item_summary_list
But you can't aggregate by day
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.
yes exactly.
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.๐
np!