- 首頁
- API Enriched
- API 參考
- 💳 帳單與使用量 API
💳 帳單與使用量 API
方案轉換、發票開立與資源消耗。命名空間層級的配額限制與使用量追蹤。
- 類別:平台
- 複雜度:中等
- 路徑數:25 | 結構描述數:101
- 層級:標準
- 相關網域:
system、users
- 管理訂閱方案與帳單轉換
- 設定付款方式與發票
- 跨命名空間追蹤資源配額使用量
- 監控使用量限制與容量
- subscription:服務授權的訂閱項目
- quota:使用量限制的資源配額
- usage_report:消耗量追蹤的使用量報告
| 方法 | 路徑 | 說明 |
|---|---|---|
| POST | /api/data/namespaces/system/billing/usage_summary | 帳單使用量摘要。 |
| GET | /api/web/namespaces/{namespace}/usage/invoice_pdf | 取得發票 PDF。 |
| GET | /api/web/namespaces/{namespace}/usage/invoices/custom_list | 列出發票。 |
| POST | /api/web/namespaces/{namespace}/billing/payment_method/{name}/primary | 設定信用卡為主要付款方式。 |
| POST | /api/web/namespaces/{namespace}/billing/payment_method/{name}/secondary | 設定付款方式為次要。 |
| POST | /api/web/namespaces/{namespace}/billing/payment_method/{name}/swap-primary | 設定付款方式為次要。 |
| POST | /api/web/namespaces/{namespace}/billing/payment_methods | 建立付款方式規格。 |
| DELETE | /api/web/namespaces/{namespace}/billing/payment_methods/{name} | 刪除指定的付款方式。 |
| GET | /no_auth/namespaces/system/billing/plan_transition | 取得方案轉換。 |
| POST | /api/web/namespaces/{namespace}/billing/plan_transition | 啟動方案轉換。 |
| POST | /api/web/namespaces/{metadata.namespace}/quotas | 建立配額。 |
| PUT | /api/web/namespaces/{metadata.namespace}/quotas/{metadata.name} | 取代配額。 |
| GET | /api/web/namespaces/{namespace}/quota/limits | 自訂取得配額限制。 |
| GET | /api/web/namespaces/{namespace}/quota/usage | 取得配額使用量。 |
| GET | /api/web/namespaces/{namespace}/quotas | 列出配額。 |
| GET | /api/web/namespaces/{namespace}/quotas/{name} | 取得配額。 |
| DELETE | /api/web/namespaces/{namespace}/quotas/{name} | 刪除配額。 |
| GET | /api/web/namespaces/{namespace}/subscriptions/custom_list | 列出訂閱。 |
| POST | /api/web/namespaces/system/addon/subscribe | 訂閱 XC 附加服務。 |
| POST | /api/web/namespaces/system/addon/unsubscribe | 取消訂閱 XC 附加服務。 |
| POST | /api/web/namespaces/{namespace}/current_usage | 列出目前使用量詳細資料。 |
| POST | /api/web/namespaces/{namespace}/hourly_usage_details | 列出每小時使用量詳細資料。 |
| POST | /api/web/namespaces/{namespace}/monthly_usage | 列出每月使用量詳細資料。 |
| POST | /api/web/namespaces/{namespace}/usage_details | 列出使用量詳細資料。 |
| GET | /api/web/namespaces/system/usage_plans/current | 取得目前使用方案。 |
| GET | /api/web/namespaces/system/usage_plans/custom_list | 列出使用方案。 |