# Billing

Plans, spend limits and the Stripe subscription.

Related guide: [Plans and usage](https://provenanceauth.com/docs/account/plans-and-usage.md)

## Endpoints

- `POST /v1/account/upgrade_session`: [Start an upgrade](#post-v1-account-upgrade-session)
- `POST /v1/account/billing_portal`: [Open the billing portal](#post-v1-account-billing-portal)
- `GET /v1/account/billing`: [Get billing status](#get-v1-account-billing)
- `PUT /v1/account/spend_limit`: [Set a spend limit](#put-v1-account-spend-limit)
- `POST /v1/account/plan`: [Change your plan](#post-v1-account-plan)
- `GET /v1/account/billing/sources`: [List billing sources](#get-v1-account-billing-sources)
- `POST /v1/account/plan/cancel`: [Cancel your plan](#post-v1-account-plan-cancel)
- `POST /v1/account/seats`: [Buy seats](#post-v1-account-seats)

## The checkout session object

### Attributes

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `checkout_url` | string | yes | The Stripe Checkout page to send the person to. |
| `session_id` | string | yes | The session's ID. |
| `stripe_mode` | enum | yes | The server's Stripe mode, `test` or `live`; null when billing isn't set up. One of `test`, `live`. |

### Example

```json
{
  "checkout_url": "https://checkout.stripe.com/c/pay/cs_test_a1B2c3D4e5F6g7H8i9J0kLmNoPqRsTuV",
  "session_id": "cs_test_a1B2c3D4e5F6g7H8i9J0kLmNoPqRsTuV",
  "stripe_mode": "test"
}
```

## Start an upgrade

`POST /v1/account/upgrade_session`

Returns a Stripe Checkout URL for your first paid plan (Pro monthly unless the body names another). A paid account's later changes use `POST /v1/account/plan`. Owners and admins only.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string | no | Retry a create safely: the same key + request returns the stored response (24 h, per caller). |
| `plan` | body | enum | no | The plan to buy. One of `pro`, `growth`. |
| `interval` | body | enum | no | Monthly or yearly billing. One of `monthly`, `yearly`. |
| `seats` | body | integer | no | Extra seats beyond the plan's included ones. |

### Returns

The Stripe Checkout URL. See [the checkout session object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`billing_not_configured`](https://provenanceauth.com/docs/platform/errors.md#billing_not_configured)
- [`insufficient_role`](https://provenanceauth.com/docs/platform/errors.md#insufficient_role)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`recent_two_factor_required`](https://provenanceauth.com/docs/platform/errors.md#recent_two_factor_required)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/account/upgrade_session" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "plan": "pro", "interval": "monthly" }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/upgrade_session`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "plan": "pro", "interval": "monthly" }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/account/upgrade_session", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "plan": "pro",
    "interval": "monthly"
}).json()
```

### Response 200

```json
{
  "checkout_url": "https://checkout.stripe.com/c/pay/cs_test_a1B2c3D4e5F6g7H8i9J0kLmNoPqRsTuV",
  "session_id": "cs_test_a1B2c3D4e5F6g7H8i9J0kLmNoPqRsTuV",
  "stripe_mode": "test"
}
```

## Open the billing portal

`POST /v1/account/billing_portal`

Returns a Stripe customer portal URL to change the card, download invoices or cancel. Owners and admins only.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string | no | Retry a create safely: the same key + request returns the stored response (24 h, per caller). |

### Returns

The customer portal URL.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`billing_not_configured`](https://provenanceauth.com/docs/platform/errors.md#billing_not_configured)
- [`insufficient_role`](https://provenanceauth.com/docs/platform/errors.md#insufficient_role)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`recent_two_factor_required`](https://provenanceauth.com/docs/platform/errors.md#recent_two_factor_required)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/account/billing_portal" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/billing_portal`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/account/billing_portal", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "portal_url": "https://billing.stripe.com/p/session/test_YWNjdF8xUjR5c2FtcGxl",
  "stripe_mode": "test"
}
```

## Get billing status

`GET /v1/account/billing`

Returns your plan and interval, the billing month, seats, usage against the included amounts, the spend cap, a scheduled plan change, the Free trial's counters and the plans you can choose.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

No parameters.

### Returns

The account's plan, billing status and Stripe mode.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/account/billing" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/billing`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/account/billing", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "object": "billing",
  "plan": "growth",
  "plan_name": "Growth",
  "interval": null,
  "billing_configured": false,
  "stripe_mode": null,
  "subscription_status": null,
  "past_due": false,
  "has_billing_customer": false,
  "has_paid_plan": false,
  "can_manage": true,
  "self_serve": true,
  "priority_support": true,
  "period": {
    "start": "2026-11-01T00:00:00.000Z",
    "end": "2026-12-01T00:00:00.000Z"
  },
  "pending_change": null,
  "seats": {
    "used": 4,
    "included": 20,
    "purchased": 0,
    "limit": 20,
    "price_cents": {
      "monthly": 500,
      "yearly": 5000
    }
  },
  "spend": {
    "estimate_cents": 34.5,
    "limit_cents": null
  },
  "usage": {
    "decision": {
      "used": 8,
      "included": 30000,
      "price_cents": 0.3
    },
    "confirmation": {
      "used": 8,
      "included": 0,
      "price_cents": 4
    },
    "verified_photo": {
      "used": 0,
      "included": 250,
      "price_cents": 20
    },
    "trace_minute": {
      "used": 0,
      "included": 600,
      "price_cents": 10
    },
    "trace_reading": {
      "used": 0,
      "included": 1000000,
      "price_cents": 0.1
    },
    "trace_label_credit": {
      "used": 0,
      "included": 0,
      "price_cents": 0.01
    },
    "verified_order": {
      "used": 1,
      "included": 0,
      "price_cents": 2.5
    },
    "verified_call": {
      "used": 0,
      "included": 0,
      "price_cents": 2.5
    },
    "identify_request": {
      "used": 0,
      "included": 0,
      "price_cents": 0.1
    },
    "text_extra_us_ca": {
      "used": 0,
      "included": 0,
      "price_cents": 3
    },
    "text_extra_intl": {
      "used": 0,
      "included": 0,
      "price_cents": 15
    },
    "call_minute_us_ca": {
      "used": 0,
      "included": 0,
      "price_cents": 5
    },
    "call_minute_intl": {
      "used": 0,
      "included": 0,
      "price_cents": 15
    },
    "evidence_export": {
      "used": 0,
      "included": 0,
      "price_cents": 15
    }
  },
  "trial": null,
  "notices": [
    {
      "kind": "overage",
      "period": "2026-11-01",
      "sent_at": "2026-11-21T21:20:08.544Z"
    }
  ],
  "options": [
    {
      "plan": "pro",
      "name": "Pro",
      "monthly_cents": 1000,
      "yearly_cents": 10000,
      "seats_included": 2,
      "included": {
        "decision": 2500,
        "verified_photo": 25,
        "trace_minute": 60,
        "trace_reading": 100000
      },
      "unit_prices": {
        "decision": 0.5,
        "confirmation": 5,
        "verified_photo": 25,
        "trace_minute": 10,
        "trace_reading": 0.1,
        "trace_label_credit": 0.01,
        "verified_order": 3,
        "verified_call": 3,
        "identify_request": 0.1,
        "text_extra_us_ca": 3,
        "text_extra_intl": 15,
        "call_minute_us_ca": 5,
        "call_minute_intl": 15,
        "evidence_export": null
      },
      "unit_tiers": {
        "trace_reading": [
          {
            "up_to": 10000000,
            "cents": 0.1
          },
          {
            "up_to": 100000000,
            "cents": 0.02
          },
          {
            "up_to": 1000000000,
            "cents": 0.005
          },
          {
            "up_to": null,
            "cents": 0.002
          }
        ]
      },
      "available": false
    },
    {
      "plan": "growth",
      "name": "Growth",
      "monthly_cents": 10000,
      "yearly_cents": 100000,
      "seats_included": 20,
      "included": {
        "decision": 30000,
        "verified_photo": 250,
        "trace_minute": 600,
        "trace_reading": 1000000
      },
      "unit_prices": {
        "decision": 0.3,
        "confirmation": 4,
        "verified_photo": 20,
        "trace_minute": 10,
        "trace_reading": 0.1,
        "trace_label_credit": 0.01,
        "verified_order": 2.5,
        "verified_call": 2.5,
        "identify_request": 0.1,
        "text_extra_us_ca": 3,
        "text_extra_intl": 15,
        "call_minute_us_ca": 5,
        "call_minute_intl": 15,
        "evidence_export": 15
      },
      "unit_tiers": {
        "trace_reading": [
          {
            "up_to": 10000000,
            "cents": 0.1
          },
          {
            "up_to": 100000000,
            "cents": 0.02
          },
          {
            "up_to": 1000000000,
            "cents": 0.005
          },
          {
            "up_to": null,
            "cents": 0.002
          }
        ]
      },
      "available": false
    }
  ],
  "finish_upgrade": null
}
```

## Set a spend limit

`PUT /v1/account/spend_limit`

Sets a monthly cap, in cents, on your account's estimated spend; null removes it. At the limit, metered calls return 402 spend_limit_exceeded until you raise it or the month resets.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `spend_limit_cents` | body | integer \| null | yes | The monthly spend limit, in cents; null for none. |

### Returns

The updated limit.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X PUT "$PROVENANCE_API/v1/account/spend_limit" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "spend_limit_cents": 50000 }'
curl -s -X PUT "$PROVENANCE_API/v1/account/spend_limit" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "spend_limit_cents": null }' > /dev/null
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/spend_limit`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "spend_limit_cents": 50000 }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/account/spend_limit", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "spend_limit_cents": 50000
}).json()
```

### Response 200

```json
{
  "spend_limit_cents": 50000
}
```

## Change your plan

`POST /v1/account/plan`

Moves the account to Pro or Growth: the first paid plan returns a Checkout URL (`checkout`), an upgrade takes effect now (`changed`), a downgrade at the end of the paid period (`scheduled`). `plan: "free"` is a 400 `use_cancel`; cancel with [`POST /v1/account/plan/cancel`](https://provenanceauth.com/docs/account/plans-and-usage.md#cancel).

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string | no | Retry a create safely: the same key + request returns the stored response (24 h, per caller). |
| `plan` | body | enum | yes | The plan to move to. `free` is a 400 `use_cancel`: cancel with `POST /v1/account/plan/cancel`. One of `free`, `pro`, `growth`. |
| `interval` | body | enum | no | Monthly or yearly billing (defaults to the current interval). One of `monthly`, `yearly`. |
| `seats` | body | integer | no | Extra seats beyond the plan's included ones (defaults to what you have). |
| `return_to` | body | enum | no | The console page a first paid plan's Checkout comes back to (defaults to `billing`, Settings → Billing). One of `billing`, `get_started`, `welcome_texts`. |

### Returns

What happened.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`billing_not_configured`](https://provenanceauth.com/docs/platform/errors.md#billing_not_configured)
- [`insufficient_role`](https://provenanceauth.com/docs/platform/errors.md#insufficient_role)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`plan_seats_over_limit`](https://provenanceauth.com/docs/platform/errors.md#plan_seats_over_limit)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`recent_two_factor_required`](https://provenanceauth.com/docs/platform/errors.md#recent_two_factor_required)
- [`use_cancel`](https://provenanceauth.com/docs/platform/errors.md#use_cancel)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/account/plan" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "plan": "growth", "interval": "yearly" }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/plan`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "plan": "growth", "interval": "yearly" }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/account/plan", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "plan": "growth",
    "interval": "yearly"
}).json()
```

### Response 200

```json
{
  "object": "plan_change",
  "status": "scheduled",
  "plan": "pro",
  "interval": "monthly",
  "effective_at": "2026-12-01T00:00:00.000Z"
}
```

## List billing sources

`GET /v1/account/billing/sources`

One entry per bill: the Stripe plan (the API, the console and direct integrations), then each platform that bills the account's shops (Shopify), with its plan, price, period, shops and this cycle's usage. A platform entry is read only. Features follow the highest plan in force.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

No parameters.

### Returns

The account's billing sources.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/account/billing/sources" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/billing/sources`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/account/billing/sources", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "object": "list",
  "data": [
    {
      "object": "billing_source",
      "source": "stripe",
      "plan": "growth",
      "interval": null,
      "price_cents": 10000,
      "read_only": false
    }
  ],
  "plan": "free",
  "platform_plan": null
}
```

## Cancel your plan

`POST /v1/account/plan/cancel`

Cancels the paid plan. The billing rules set when it ends: the plan stays until the end of the paid period (`scheduled`, with `effective_at`), and the console shows the date. Choosing your current plan again with `POST /v1/account/plan` undoes it. An owner or admin with a recent second factor. See [plans and usage](https://provenanceauth.com/docs/account/plans-and-usage.md#cancel).

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

No parameters.

### Returns

The cancellation, scheduled.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`billing_not_configured`](https://provenanceauth.com/docs/platform/errors.md#billing_not_configured)
- [`insufficient_role`](https://provenanceauth.com/docs/platform/errors.md#insufficient_role)
- [`no_paid_plan`](https://provenanceauth.com/docs/platform/errors.md#no_paid_plan)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`plan_seats_over_limit`](https://provenanceauth.com/docs/platform/errors.md#plan_seats_over_limit)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`recent_two_factor_required`](https://provenanceauth.com/docs/platform/errors.md#recent_two_factor_required)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/account/plan/cancel" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/plan/cancel`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({}),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/account/plan/cancel", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={}).json()
```

### Response 200

```json
{
  "object": "plan_change",
  "status": "scheduled",
  "plan": "free",
  "interval": null,
  "effective_at": "2026-12-01T00:00:00.000Z"
}
```

## Buy seats

`POST /v1/account/seats`

Adds seats beyond the plan's included ones (prorated) to the paid subscription. A seat is a console member (owner, admin, developer, analyst); approvers are not seats. Owners and admins only.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string | no | Retry a create safely: the same key + request returns the stored response (24 h, per caller). |
| `add` | body | integer | yes | How many seats to add. |

### Returns

The seats after the purchase.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`billing_not_configured`](https://provenanceauth.com/docs/platform/errors.md#billing_not_configured)
- [`insufficient_role`](https://provenanceauth.com/docs/platform/errors.md#insufficient_role)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`recent_two_factor_required`](https://provenanceauth.com/docs/platform/errors.md#recent_two_factor_required)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/account/seats" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "add": 1 }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/seats`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "add": 1 }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/account/seats", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "add": 1
}).json()
```

### Response 200

```json
{
  "object": "seats",
  "seats_purchased": 1,
  "used": 2,
  "included": 2,
  "purchased": 1,
  "limit": 3
}
```
