---
title: "Get billing information"
method: GET
path: "/test_framework/billing/info/"
tags: ["test_framework"]
---

# Get billing information

`GET /test_framework/billing/info/`

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.

## Query parameters

- `organization_id` integer

## Response `200`

- BillingInfo
  - `organization` integer — Organization ID this billing record belongs to. Example: `37`
  - `credits_remaining` string — Credits currently available to spend on runs and calls. Example: `7436.08`
  - `credits_used` string — Total credits consumed across all non-refunded transactions on this billing record. Example: `36462.14`
  - `initial_balance` string — Credits granted by the current pack at the start of the billing period (before any usage). Example: `50000.00`
  - `balance_expiry` string, date-time — Date the current credit balance expires (null if no expiry is set). Example: `2026-06-23T10:00:00Z`
  - `subscription_status` unknown

## Other responses

- `403` — Project-scoped API keys are not allowed
- `404` — Billing information not found

---

[API](https://skmtc.net/cekura/apis/cekura-api.md) · [All operations](https://skmtc.net/cekura/apis/cekura-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cekura/cekura-api/versions/d08e85615b58/schema)
