Learn about feature balances for your metered features
included_usage
field.
prepaid
price, the included usage will be
dynamically set to the quantity of the product item purchased in advance.customers
method.
usage
will be reset to 0, and balance
will be set back to the included_usage
.
Reset intervals can be: minute
, hour
, day
, week
, month
, quarter
, semi_annual
, or year
.
If a feature has a price associated with it, the reset interval will be the same as the billing interval. This means it can be one of the following: month
, quarter
, semi_annual
, or year
.
interval
or set it to null
interval
will be the billing interval, but you can use item.reset_usage_on_billing: false
interval: null
interval: month
, and reset_usage_on_billing: false
month
and “no reset”.
Autumn will create 2 separate balances for each of these. You will see each of these in the customers
route and on the customer details page in the dashboard.
When you send a usage event, Autumn will deduct from the balance with the shortest reset interval first.
included_usage
minus usage
calculation.
included_usage
and usage
will not be updated.
balance: -5
, usage: 5
). Then, they remove a seat.
If prorate_decrease
is set to false
, the customer will be paying for 5 seats and using 4 seats (balance: -5
, usage: 4
). This means that our customer has 1 seat available that they have paid for but not using.
In this case, the balance and usage has diverged. Autumn accounts for this scenario: they can add another seat at any time, which will not be charged for.
Otherwise, at the start of the next billing period, they usage and balance will synchronize again (balance: -4
, usage: 4
), and they will be billed for 4 seats.