ドキュメント本文へスキップ
API

請求を一覧にする

ワークスペースのすべての請求と、それぞれの請求書。

GET/billing/invoices

実際の呼び出しをワークスペースに対して実行します。

GET /billing/invoices

ワークスペースのすべての請求と、それぞれの請求書。

例

billing:read が必要。プランと請求の履歴にあたる。page と limit で請求をページ送りし、sort は newest または oldest、search はプラン、請求書番号、請求 ID、請求先の名前を検索する。

curl
curl "$OE/billing/invoices?limit=10" -H "$AUTH"
レスポンス
{  "object": "list",  "data": [    {      "object": "invoice",      "id": "8c51f0d2-3b7e-4a19-b6c4-0e9d2f7a1c38",      "createdAt": "2026-10-01T09:00:12.000Z",      "amountCents": 10000,      "subtotalCents": 10000,      "currency": "usd",      "status": "paid",      "paid": true,      "reason": "subscription_cycle",      "invoiceNumber": "ACME-0007",      "invoiceReady": true,      "needsBillingDetails": false,      "billingName": "Acme Ltd",      "product": "Business",      "payAsYouGo": false,      "discount": null    }  ],  "total": 7,  "page": 1,  "limit": 10,  "hasMore": false,  "metered": true}

needsBillingDetails は、請求書にまず請求先の名前と住所が必要なことを意味し、それは PUT /billing/invoices/{orderId}/details が保存する。

請求に届くのはワークスペースのオーナーだけ: API キー、またはオーナーがすべてのアドレスで接続したアクセストークン。メンバーのトークンは 403 owner_only、特定のアドレスやドメインに限定したキーやトークンは 422 capability_unsupported になる。

リファレンス