账户 API 参考
Orbit API 中 账户 的全部 10 个端点:方法与路径、所需令牌权限、参数,以及对应的命令行命令与 MCP 工具。
共 8 个端点,其中 6 个只读。每一个都同时是 orbit 命令行中的命令、SDK 中的方法和 MCP 服务器上的工具。
| 端点 | 权限 | 参数 | CLI · MCP 工具 |
|---|---|---|---|
GET /billingSubscription status and the packs on sale | 只读 | — | orbit billing statusbilling_status |
POST /billing/checkoutBuy or switch to a pack: a checkout URL, or an in-place change of the running subscription | 读写 仅控制台 | 请求体: plan* string | orbit billing checkoutbilling_checkout |
POST /billing/portalBilling portal URL (payment method, cancel, invoices) | 读写 仅控制台 | — | orbit billing portalbilling_portal |
GET /billing/invoicesInvoices (newest first, up to 24) | 只读 | — | orbit billing invoicesbilling_invoices |
| 端点 | 权限 | 参数 | CLI · MCP 工具 |
|---|---|---|---|
GET /billing/productsProducts on sale with their prices | 只读 | ?currency EUR | HKD | USD | orbit billing products listbilling_products_list |
| 端点 | 权限 | 参数 | CLI · MCP 工具 |
|---|---|---|---|
GET /billing/billsYour bills and invoices, newest first | 只读 | ?status unpaid | paid | void | written_off?limit integer | orbit billing bills listbilling_bills_list |
GET /billing/bills/{id}One bill or invoice with its lines | 只读 | id string | orbit billing bills get <id>billing_bills_get |
| 端点 | 权限 | 参数 | CLI · MCP 工具 |
|---|---|---|---|
GET /billing/servicesYour billed services | 只读 | — | orbit billing services listbilling_services_list |