Settled balance comes from committed credit movements. If a customer receives 100 USD and consumes 30 USD, the settled balance is 70 USD.
+ 100 funded
- 30 consumed
--------------
70 settled balance
If you query a balance at a timestamp, Metering & Billing includes movements visible at or before that timestamp, because a settled balance references a point in time.
Future movements, including future expiration, don’t affect an earlier balance.
Example:
T1: grant 100 credits
T5: consume 30 credits
T10: expire unused credits
The settled balance changes depending on the query timestamp:
|
Query time
|
Settled balance
|
|
T1
|
100
|
|
T5
|
70
|
|
T10
|
0
|
Settled balance is the right model for audit and history: the same timestamp always reflects the same visible ledger state.