# Plan and billing API reference

Base URL `https://api.beplan.io/v1`. Every operation is listed with its scope, permission, inputs, answers, errors and an example. Conventions: https://beplan.io/docs/api.md. OpenAPI document: https://beplan.io/docs/api/openapi.json.

## Get the subscription's state

`GET /organizations/{organizationId}/plan/billing` · operationId `billing.get`

- Scope: `billing:read`
- Role permission: Manage billing (`billing:update`)
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Returns where the organization's subscription stands: the plan in force, `status` (`free`, `trialing`, `active`, `cancelled`), the billing interval, the trial, renewal, cancellation and end dates (ISO 8601 UTC), and the add-ons held: `teamCollaboration` (0 or 1), `extraWorkspaces` (a count) and `extraStorageMb` (megabytes, by 100,000 MB units), all `0` once paid access ended. Only members who manage billing can read it (in practice the owner); others get `403 MISSING_PERMISSION`.

No price, invoice or payment-provider identifier is returned, and nothing here can be changed through the API: plan changes, add-ons and cancellation happen in Beplan. The billing interval is read from the payment provider and is `null` when it could not be reached. What the plan allows: `organizations.plan.get`.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |

**200 OK**

- `data` (object, required, BillingSummary)
  - `planType` (string, required): The plan in force now (the same as `GET …/plan/summary`). New plans may appear. one of `free`, `starter`, `growth`, `pro`, `studio`, `creator` (may gain values).
  - `status` (string, required): `free`: no paid access (no subscription, or it ended / the trial expired without payment); `trialing`: in the free trial, until `trialEndsAt`; `active`: paid and renewing on `nextBilledAt`; `cancelled`: cancelled, paid access continues until `endsAt`. one of `free`, `trialing`, `active`, `cancelled` (may gain values).
  - `billingInterval` (string, required, nullable): How the plan is billed: `monthly` or `annual`; `null` without paid access, or when the payment provider could not be reached (try again later). one of `monthly`, `annual`.
  - `trialEndsAt` (string (date-time), required, nullable): When the free trial ends (or ended), ISO 8601 UTC; `null` without a trial.
  - `nextBilledAt` (string (date-time), required, nullable): When the subscription renews next, ISO 8601 UTC; `null` when it doesn't renew.
  - `cancelledAt` (string (date-time), required, nullable): When the subscription was cancelled, ISO 8601 UTC; `null` when it wasn't.
  - `endsAt` (string (date-time), required, nullable): When paid access ends (or ended), ISO 8601 UTC; `null` while it renews.
  - `addOns` (object, required, BillingAddOns)
    - `teamCollaboration` (integer, required): at least 0.
    - `extraWorkspaces` (integer, required): at least 0.
    - `extraStorageMb` (integer, required): at least 0.

**Errors**

| Status | Code | Message |
|---|---|---|
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A monthly Growth subscription**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/plan/billing" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "planType": "growth",
    "status": "active",
    "billingInterval": "monthly",
    "trialEndsAt": "2026-10-14T09:12:00.000Z",
    "nextBilledAt": "2026-12-14T09:12:00.000Z",
    "cancelledAt": null,
    "endsAt": null,
    "addOns": {
      "teamCollaboration": 1,
      "extraWorkspaces": 1,
      "extraStorageMb": 0
    }
  }
}
```


## Get the organization's plan

`GET /organizations/{organizationId}/plan/summary` · operationId `organizations.plan.get`

- Scope: `organization:read`
- Role permission: Any member who can see it
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Returns the plan the organization is on now and what it allows: the plan type, its feature ids, its limits (workspaces, storage, scheduled posts per month, how often post metrics refresh) with the add-ons bought included, and whether the Team Collaboration add-on is active. `free` means no paid access (never subscribed, subscription ended or trial expired). Any member can read it.

Use it to know in advance what will answer `402 PLAN_UPGRADE_REQUIRED`. What is used against the limits: `organizations.usage.get` and `organizations.scheduledPostQuota.get`. Trial and renewal dates: `billing.get` (`billing:read`). Some features are also being rolled out organization by organization; that rollout is not listed here, and an operation of a feature not yet open answers `402 PLAN_UPGRADE_REQUIRED` too.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |

**200 OK**

- `data` (object, required, OrganizationPlanSummary)
  - `planType` (string, required): The plan in force now: `free` without a subscription, or once a subscription ended or a trial expired. `creator` is a legacy plan some organizations keep. New plans may appear. one of `free`, `starter`, `growth`, `pro`, `studio`, `creator` (may gain values).
  - `features` (array of string, required): What the plan includes, as feature ids (`insights`, `smart_insights`, `quick_fill`, `review_and_approvals`…). An open list: ids are added as Beplan grows and an id can be retired; ignore the ones you don't know. Features that also need the Team Collaboration add-on (reviews, approvals) need `teamCollaboration` too.
  - `limits` (object, required, OrganizationPlanLimits)
    - `workspaces` (integer, required, nullable): Workspaces the organization can have, extra workspaces bought included; `null` means unlimited.
    - `storageBytes` (integer, required, nullable): Media storage of the whole organization, in bytes (1 GB = 1024³ bytes), extra storage bought included; `null` means unlimited. `GET …/usage` gives what is used.
    - `scheduledPostsPerMonth` (integer, required, nullable): Posts the organization can schedule per calendar month (UTC); `null` means unlimited. `GET …/scheduled-post-quota` gives how many count this month.
    - `metricsRefreshMinutes` (integer, required): How often published posts' metrics are refreshed, in minutes; `0` means no metrics.
  - `teamCollaboration` (boolean, required): Whether the Team Collaboration add-on is active: paper and post reviews, approvals and teams need it (`402 PLAN_UPGRADE_REQUIRED` otherwise).

**Errors**

| Status | Code | Message |
|---|---|---|
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A Growth plan with Team Collaboration**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/plan/summary" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "planType": "growth",
    "features": [
      "insights",
      "smart_insights",
      "quick_fill",
      "review_and_approvals",
      "inbox"
    ],
    "limits": {
      "workspaces": 3,
      "storageBytes": 214748364800,
      "scheduledPostsPerMonth": null,
      "metricsRefreshMinutes": 60
    },
    "teamCollaboration": true
  }
}
```


---
HTML version: https://beplan.io/docs/api/plan-and-billing/
