Billing FAQ
Q. What is the "Calculation Method" setting (sum/max) for meter units?
A. The "Calculation Method" setting for meter units is a function that specifies how metering data is aggregated.
When Stripe integration is enabled, the "Calculation Method" (sum or max) that can be configured in the UI not only calculates billing amounts to Stripe but also determines how the count values are calculated in metering-related APIs.
Note that when Stripe integration is not enabled, this setting item is not displayed in the UI, but the aggregation method defaults to sum (total).
Specifically, the count values returned by the following APIs change according to the aggregation settings:
- Get Metering Unit Count for Specific Date
- Get Metering Unit Count for the Current Day
- Get Metering Unit Count for the Current Month
- Get the Metering Unit Count for the Specified Month
- Get All Metering Unit Counts for a Specified Date
- Get All Metering Unit Counts for the Specified Month
Differences in count values based on aggregation method
When sum (total) is set:
The API returns a count that is the sum of metering values recorded within the specified period (daily or monthly).
When max (maximum) is set:
The API returns a count that is the maximum value of metering values recorded within the specified period (daily or monthly).