- 首页
- API Enriched
- API 参考
- 💳 账单与用量 API
💳 账单与用量 API
计划过渡、发票管理和资源消耗。命名空间级别的配额限制与用量追踪。
- 类别:平台
- 复杂度:中等
- 路径数:25 | Schema 数: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 | 列出用量计划。 |