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

# Subscribe to Plan

Initiate a subscription upgrade or creation for your organization. This generates a checkout session for a recurring billing plan.

### Request

<ParamField header="X-Organization-Id" type="string" required>
  The unique identifier of the organization.
</ParamField>

<ParamField body="plan" type="string" required>
  The name of the target plan. Valid options include `pro` and `enterprise`. Note that upgrading to `enterprise` requires contacting the sales team.
</ParamField>

### Response

<ResponseField name="checkout_url" type="string">
  The URL to redirect the user to complete their subscription via Dodo Payments.
</ResponseField>

<ResponseField name="session_id" type="string">
  The unique identifier of the checkout session.
</ResponseField>

<ResponseField name="plan" type="string">
  The plan name requested.
</ResponseField>

<ResponseField name="price" type="number">
  The monthly price of the requested plan.
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "checkout_url": "https://checkout.dodopayments.com/pay/cs_def456",
    "session_id": "cs_def456",
    "plan": "pro",
    "price": 79.0
  }
  ```
</ResponseExample>
