Billing
6 endpoints under /v1/billing.
Read the current credit balance.
/v1/billing/balanceRequiresbilling:read
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.
Read the org's resolved entitlements (features + numeric limits).
/v1/billing/entitlementsRequiresbilling:read
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.
List invoices with cursor-based pagination.
/v1/billing/invoicesReturns an empty list, not 404, when the org has no Stripe customer.
Requiresbilling:read
Query parameters
limitintegeroptionalstarting_afterstringoptional
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.
Read the org's current subscription (tier, status, period window).
/v1/billing/subscriptionRequiresbilling:read
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.
List credit-transaction history with offset pagination.
/v1/billing/transactionsEach row carries balance_after, so the running balance can be reconstructed without another query. transaction_type must be a TransactionType value; anything else yields an invalid_request error.
Requiresbilling:read
Query parameters
limitintegeroptionaloffsetintegeroptionaltransaction_typestringoptional
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.
Read the usage summary for the current billing period.
/v1/billing/usageRequiresbilling:read
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.