문서로 건너뛰기
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입니다.

레퍼런스