GET /billing/credit-balance/{tenant_id}
获取租户的信用余额,来源于退款、按比例降价、促销额度等。信用余额可用于抵扣后续账单。
计费服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
tenant_id |
path |
string |
Yes |
|
|
|
租户ID |
Referenced Schemas
dto.CreditBalanceDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.CreditBalanceResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.CreditBalanceResponse
| Field | Type | Required | Example | Constraints | Description |
balance |
number |
No |
150 |
|
|
currency |
string |
No |
CNY |
|
|
tenant_id |
string |
No |
tnt_xyz789 |
|
|
updated_at |
string |
No |
2026-05-12T10:00:00Z |
|
|