# Subscribe

`POST /v1/organizations/{organization}/billingAccount/subscribe`, operation `billingAccounts.Subscribe`

Starts Pro or Team by card in Stripe Checkout, or switches a live Stripe Pro subscription to Team in place. Fails with failed_precondition, reason ALREADY_SUBSCRIBED, when already on that plan or higher.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `organization` | path | Yes | `string` | The organization's ID. |

## Request body

Content-Type: `application/json` (required)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `plan` | `string` | Yes | The plan to subscribe to: PRO ($15 a month flat) or TEAM ($30 a builder a month). Values: `PRO`, `TEAM`. |
| `returnUri` | `string` | Yes | The console's page that Stripe's checkout returns to, with subscription=started once paid. |

## Responses

### 200

OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `checkoutUri` | `string` | No | Where the browser goes to pay in Stripe's checkout; empty when an existing Pro subscription switched to Team in place. |
| `switched` | `boolean` | No | True when an existing Stripe Pro subscription switched to Team in place without a new checkout. |

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.