v1

latestOpenAPI 3.1.02026-07-22152755.8 KB
test_framework

Get billing information

Returns credits remaining, credits used, balance expiry, and subscription status for an organization. When called with an organization-scoped API key, the org is taken from the key. When called with a user session or OAuth bearer, pass organization_id as a query parameter — the caller must be an admin of that organization.

get/test_framework/billing/info/

Query parameters

organization_idinteger

Tenant scope. Supply one of organization_id when authenticating with a user session or OAuth bearer token; omit when using an API key already scoped to the tenant.

Response

organizationinteger

Organization ID this billing record belongs to. Example: 37

credits_remainingstring

Credits currently available to spend on runs and calls. Example: 7436.08

credits_usedstring

Total credits consumed across all non-refunded transactions on this billing record. Example: 36462.14

initial_balancestring

Credits granted by the current pack at the start of the billing period (before any usage). Example: 50000.00

balance_expirystring date-time

Date the current credit balance expires (null if no expiry is set). Example: 2026-06-23T10:00:00Z

{"stackTrail":"components:schemas:SubscriptionStatus","oasType":"schema","type":"unknown","description":"Referenced by this API but not published in the vendor's docs pages."}