根据订阅标识获取计费账户信息
接口描述
GET /v1/subscriptions/{subscription_name}/billingAccounts
根据订阅标识获取计费账户信息
请求头(Request Header)
请求参数(Request Parameters)
| 名称 | 位置 | 类型 | 必须 | 描述 | 
|---|---|---|---|---|
| subscription_name | path | string | true | 订阅标识 | 
请求体(Request Body)
无
请求示例(Request Example)
curl --request GET \
  --url https://management.sensecoreapi.dev/rmh/v1/subscriptions/string/billingAccounts \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {access-token}'
响应参数(Response Parameters)
| Status | Meaning | Description | Schema | 
|---|---|---|---|
| 200 | OK | OK | GetSubscriptionBillingAccountsResponse | 
响应示例(Response Example)
200 Response
{
  "billing_accounts": [
    {
      "billing_account_id": "string",
      "billing_account_display_name": "string",
      "distribution_ratio": 0,
      "available_balance": {
        "currency_code": "string",
        "units": 0,
        "nanos": 0
      }
    }
  ]
}
数据结构(Schemas)
AvailableSubscriptionBillingAccount
| 名称 | 类型 | 必须 | 限制 | 描述 | 
|---|---|---|---|---|
| billing_account_id | string | false | none | 计费帐号ID | 
| billing_account_display_name | string | false | none | 计费账户名称 | 
| distribution_ratio | integer(int32) | false | none | 当前计费账户分配比例 | 
| available_balance | Money | false | none | 价格 | 
GetSubscriptionBillingAccountsResponse
| 名称 | 类型 | 必须 | 限制 | 描述 | 
|---|---|---|---|---|
| billing_accounts | [AvailableSubscriptionBillingAccount] | false | none | 计费账户信息 | 
Money
| 名称 | 类型 | 必须 | 限制 | 描述 | 
|---|---|---|---|---|
| currency_code | string | false | none | 货币代码, 参考ISO 4217 | 
| units | integer(int64) | false | none | 价格整数部分 | 
| nanos | integer(int32) | false | none | 价格小数部分 |