跳到內容

💳 帳單與使用量 API

方案轉換、發票開立與資源消耗。命名空間層級的配額限制與使用量追蹤。

  • 類別:平台
  • 複雜度:中等
  • 路徑數:25 | 結構描述數:101
  • 層級:標準
  • 相關網域systemusers
  • 管理訂閱方案與帳單轉換
  • 設定付款方式與發票
  • 跨命名空間追蹤資源配額使用量
  • 監控使用量限制與容量
  • 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列出使用方案。