---
title: "Plan, credit balance, grants and recent usage"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Plan, credit balance, grants and recent usage

Path: CloudRaker Workspace API › Billing

`GET /billing/plan-view`

The plan and usage summary the Settings → Billing screen renders. Its `rates` come from the advertised catalog and carry a price for every row — for the plan’s own credit price list, including the meters it does not price, read `GET /api/billing/rates`. Authorization: any member of the organization.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.cloudraker.com/billing/plan-view \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/billing/plan-view';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/billing/plan-view"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The organization’s plan view.

#### Example

```json
{
  "plan": {
    "name": "Free"
  },
  "balance": {
    "settled": 19940,
    "granted": 20000,
    "creditValueUsd": 0.001
  },
  "aiWallet": {
    "settled": 1000,
    "granted": 1025,
    "creditValueUsd": 0.01,
    "recharged": true
  },
  "credits": {
    "balance": 49716.547,
    "held": 22.5,
    "currency": "credits"
  },
  "rates": [
    {
      "feature": "Parse — Simple Page",
      "unit": "page",
      "credits": 5
    }
  ],
  "grants": [
    {
      "reason": "plan",
      "granted": 20000,
      "remaining": 19940,
      "grantedAt": "2026-07-26T17:41:42Z",
      "expiresAt": "2027-07-26T17:41:42Z"
    }
  ],
  "usage": [
    {
      "at": "2026-07-25T12:00:00Z",
      "event": "page_extracted",
      "feature": "Extraction — Smart",
      "quantity": 3,
      "credits": -45,
      "dimensions": {
        "property1": "string",
        "property2": "string"
      }
    }
  ]
}
```

- `plan` (`getBillingPlanView.response.200.plan`; object, required)
  - `name` (`getBillingPlanView.response.200.plan.name`; string | null, required)
    - example `"Free"`
- `balance` (`getBillingPlanView.response.200.balance`; object, required)
  - `settled` (`getBillingPlanView.response.200.balance.settled`; number, required)
    - example `19940`
  - `granted` (`getBillingPlanView.response.200.balance.granted`; number, required)
    - example `20000`
  - `creditValueUsd` (`getBillingPlanView.response.200.balance.creditValueUsd`; number, required)
    - example `0.001`
- `aiWallet` (`getBillingPlanView.response.200.aiWallet`; object, required)
  - `settled` (`getBillingPlanView.response.200.aiWallet.settled`; number, required)
    - example `1000`
  - `granted` (`getBillingPlanView.response.200.aiWallet.granted`; number, required)
    - example `1025`
  - `creditValueUsd` (`getBillingPlanView.response.200.aiWallet.creditValueUsd`; number, required)
    - example `0.01`
  - `recharged` (`getBillingPlanView.response.200.aiWallet.recharged`; boolean, required)
    - example `true`
- `credits` (`getBillingPlanView.response.200.credits`; object, required)
  - `balance` (`getBillingPlanView.response.200.credits.balance`; number, required)
    - example `49716.547`
  - `held` (`getBillingPlanView.response.200.credits.held`; number, required)
    - example `22.5`
  - `currency` (`getBillingPlanView.response.200.credits.currency`; string, required)
    - example `"credits"`
- `rates` (`getBillingPlanView.response.200.rates`; array<object>, required)
  - `feature` (`getBillingPlanView.response.200.rates.feature`; string, required)
    - example `"Parse — Simple Page"`
  - `unit` (`getBillingPlanView.response.200.rates.unit`; string, required)
    - example `"page"`
  - `credits` (`getBillingPlanView.response.200.rates.credits`; number, required)
    - example `5`
- `grants` (`getBillingPlanView.response.200.grants`; array<object>, required)
  - `reason` (`getBillingPlanView.response.200.grants.reason`; string | null, required)
    - example `"plan"`
  - `granted` (`getBillingPlanView.response.200.grants.granted`; number, required)
    - example `20000`
  - `remaining` (`getBillingPlanView.response.200.grants.remaining`; number, required)
    - example `19940`
  - `grantedAt` (`getBillingPlanView.response.200.grants.grantedAt`; string, required)
    - example `"2026-07-26T17:41:42Z"`
  - `expiresAt` (`getBillingPlanView.response.200.grants.expiresAt`; string | null, required)
    - example `"2027-07-26T17:41:42Z"`
- `usage` (`getBillingPlanView.response.200.usage`; array<object>, required)
  - `at` (`getBillingPlanView.response.200.usage.at`; string, required)
    - example `"2026-07-25T12:00:00Z"`
  - `event` (`getBillingPlanView.response.200.usage.event`; string | null, required)
    - example `"page_extracted"`
  - `feature` (`getBillingPlanView.response.200.usage.feature`; string | null, required)
    - example `"Extraction — Smart"`
  - `quantity` (`getBillingPlanView.response.200.usage.quantity`; number, required)
    - example `3`
  - `credits` (`getBillingPlanView.response.200.usage.credits`; number | null, required)
    - example `-45`
  - `dimensions` (`getBillingPlanView.response.200.usage.dimensions`; map<string | number | boolean>, optional)

### 503

`not_configured` — billing is not wired in this environment; `metering_unavailable` — the billing service did not answer.

#### Example

```json
{
  "error": "not_configured"
}
```

- `error` (`getBillingPlanView.response.503.error`; string, required)
  - one of `"not_configured"`, `"metering_unavailable"`


Source: https://docs.cloudraker.com/workspace/api/billing/get-billing-plan-view/index.md
