/api/external/v2/billing/summarySubscription and credits/api/external/v2/billing/credits/balanceCredits onlyOverview
The billing surface is read-only. Both endpoints require the billing:read scope and return data for the authenticated caller's active account.
GET /billing/summary returns subscription metadata and the credit balance in one response. Use it when you need the account's billing status.
GET /billing/credits/balance returns only the credit balance block. Use it when the subscription fields are not needed.
enabled=false with balance=null means the account is not provisioned for credit-based billing. enabled=true with balance=0 means the account is provisioned and has zero credits available.
Billing Summary
/api/external/v2/billing/summaryGet subscription metadata and credit balance for the active account
curl -X GET "https://api.levcapital.com/api/external/v2/billing/summary" \
-H "Authorization: Bearer YOUR_API_KEY"Response (200):
{
"request_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"timestamp": "2026-05-06T15:30:45Z",
"data": {
"subscription": {
"type": "standard",
"status": "active",
"billing_cycle": "monthly",
"end_date": "2026-12-31"
},
"credits": {
"enabled": true,
"balance": 1250,
"unit": "credits"
}
}
}For accounts that are not provisioned for credit-based billing, credits.enabled is false and credits.balance is null.
unauthorizedforbiddenCredit Balance
/api/external/v2/billing/credits/balanceGet the credit balance for the active account
curl -X GET "https://api.levcapital.com/api/external/v2/billing/credits/balance" \
-H "Authorization: Bearer YOUR_API_KEY"Response (200):
{
"request_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"timestamp": "2026-05-06T15:30:45Z",
"data": {
"enabled": true,
"balance": 1250,
"unit": "credits"
}
}unauthorizedforbiddenBilling Objects
Subscription object
| Field | Type | Description |
|---|---|---|
type | string|null | Subscription type for the active account |
status | string|null | Current subscription status |
billing_cycle | string|null | Billing cadence, such as monthly or annual |
end_date | string|null | Subscription end date as an ISO 8601 date |
Credits object
| Field | Type | Description |
|---|---|---|
enabled | boolean | Whether the active account is provisioned for credit-based billing |
balance | integer|null | Current credit balance, or null when credits are not enabled |
unit | string | Balance unit. Current value is credits |