Join usage-based billing early access (beta)
Usage-based billing is in early access (beta). Read how it works, then apply to join. We'll reach out if you meet the program requirements.
GET
/customers/{customer_id}/usage-balances/{usage_balance_id}Requires
usage_balance.read permission.Path parameters
usage_balance_idstringrequired
Paddle ID of the usage balance entity to work with.
Pattern:
^ubl_[a-z\d]{26}$customer_idstringrequired
Example:
ctm_01grnn4zta5a1mf02jjze7y2ysUnique Paddle ID for this customer entity, prefixed with
ctm_.Pattern:
^ctm_[a-z\d]{26}$Response (200)
dataobjectrequired
Represents a customer's usage balance for one of your usage balance units. Paddle creates usage balances automatically when a customer subscribes to a price with an allowance, so you can't create or update them using the API. A customer has one usage balance for each usage balance unit.
idstringrequired
Example:
ubl_01h9zx4p8q2r5t7v9w1y3z5b7dUnique Paddle ID for this usage balance entity, prefixed with
ubl_.Pattern:
^ubl_[a-z\d]{26}$customer_idstringrequired
Example:
ctm_01grnn4zta5a1mf02jjze7y2ysPaddle ID of the customer this usage balance belongs to.
Pattern:
^ctm_[a-z\d]{26}$usage_balance_unit_idstringrequired
Example:
ubu_01kw8ta2j8x5t7q4v9m1kd6phzPaddle ID of the usage balance unit that this usage balance is for. A customer has one usage balance for each usage balance unit, and usage events draw it down using the meters for that unit.
Pattern:
^ubu_[a-z\d]{26}$balanceobjectrequired
Amounts for a customer's usage balance in the current billing period. Amounts are in the usage balance unit, not currency. The allowance isn't returned directly. To get it, add
used.total and remaining.total.usedobjectrequired
How much of the allowance the customer has used in the current billing period, broken down by source. Doesn't include overage.
totalstringrequired
Total across all sources, for example
"1000" or "1000.5".Max length: 45
Pattern:
^(0|[1-9][0-9]{0,34})(\.[0-9]{1,9})?$subscriptionstringrequired
Amount from allowances on the customer's subscriptions.
Max length: 45
Pattern:
^(0|[1-9][0-9]{0,34})(\.[0-9]{1,9})?$remainingobjectrequired
How much of the allowance is left in the current billing period, broken down by source. Counts down as usage is recorded and stops at
"0", after which Paddle records usage in overage. During beta, Paddle never blocks usage, so restrict access to metered features in your app when remaining.total reaches "0".totalstringrequired
Total across all sources, for example
"1000" or "1000.5".Max length: 45
Pattern:
^(0|[1-9][0-9]{0,34})(\.[0-9]{1,9})?$subscriptionstringrequired
Amount from allowances on the customer's subscriptions.
Max length: 45
Pattern:
^(0|[1-9][0-9]{0,34})(\.[0-9]{1,9})?$overageobjectrequired
Usage recorded after
remaining reached "0" in the current billing period. Paddle doesn't bill for overage, and clears it when the subscription renews.totalstringrequired
Total overage recorded in the current billing period, for example
"0" or "25.5".Max length: 45
Pattern:
^(0|[1-9][0-9]{0,34})(\.[0-9]{1,9})?$started_atstring (date-time)
Example:
2024-10-12T07:20:50.52ZWhen this usage balance first went into overage in the current billing period. Not returned when
total is "0".created_atstring (date-time)required
Example:
2024-10-12T07:20:50.52ZRFC 3339 datetime string of when this entity was created. Set automatically by Paddle.
updated_atstring (date-time)required
Example:
2024-10-13T07:20:50.52ZRFC 3339 datetime string of when this entity was updated. Set automatically by Paddle.
metaobjectrequired
Information about this response.
request_idstringrequired
Example:
b15ec92e-8688-40d4-a04d-f44cbec93355Unique ID for the request relating to this response. Provide this when contacting Paddle support about a specific request.
{ "data": { "id": "ubl_01h9zx4p8q2r5t7v9w1y3z5b7d", "customer_id": "ctm_01gw9m680k848184fpttwr0b7z", "usage_balance_unit_id": "ubu_01kw8ta2j8x5t7q4v9m1kd6phz", "balance": { "used": { "total": "3500", "subscription": "3500" }, "remaining": { "total": "6500", "subscription": "6500" }, "overage": { "total": "0" } }, "created_at": "2026-09-02T10:00:00Z", "updated_at": "2026-09-15T10:15:00Z" }, "meta": { "request_id": "bb093d50-ddb5-401a-a5ba-034b187b396e" }}