---
title: "Subscribe To Plan"
method: POST
path: "/v1/organizations/billing/subscribe"
tags: ["Organization Billing"]
---

# Subscribe To Plan

`POST /v1/organizations/billing/subscribe`

## Request

- Base URL: `https://api.mixpeek.com`
- URL: `https://api.mixpeek.com/v1/organizations/billing/subscribe`
- Auth: HTTP bearer

Subscribe to a paid plan via Stripe Checkout.

Creates a Stripe Checkout Session in subscription mode. After payment,
the organization's account_type is updated via webhook.

If the organization already has an active subscription, the plan is
changed inline (upgrade/downgrade with proration) instead of creating
a new checkout session.

**Available Plans** (tier minimum is a billing floor; usage above it
bills automatically):
- `managed_build`: Managed Mixpeek Build — $25/mo min, 100K objects/mo
- `managed_scale`: Managed Mixpeek Scale — $250/mo min, 1M objects/mo
- `mvs_build`: MVS Standalone Build — $25/mo min, 1M vectors
- `mvs_scale`: MVS Standalone Scale — $250/mo min, 25M vectors

**Discounts:** each non-empty `onboarding_answers` field takes $5 off the
first invoice (max $10). An explicit `promo_code` is validated and
pre-applied; when both are sent the promo takes checkout's single
discount slot and the onboarding credit lands on the customer balance.
Without either, Stripe's own promo-code field is enabled at checkout.

## Request body

- SubscribeRequest: Request to subscribe to a plan.
  - `plan` string, required: Plan slug: managed_build, managed_scale, mvs_build, mvs_scale. The tier minimum is a billing floor — usage above it bills automatically at the plan's rates.
  - `success_url` string, nullable: Redirect URL after successful subscription
  - `cancel_url` string, nullable: Redirect URL if subscription is cancelled
  - `onboarding_answers` OnboardingAnswers: Optional signup questions — each non-empty answer takes $5 off the first invoice (max $10). Answers are persisted for GTM attribution.
    - `building` string, nullable: What are you building?
    - `referral_source` string, nullable: How did you hear about Mixpeek?
  - `promo_code` string, nullable: Optional promo code to pre-apply at checkout. When combined with onboarding answers, the promo takes checkout's single discount slot and the onboarding credit lands on the customer balance.

## Response `200`

Successful Response

- SubscribeResponse: Response with Stripe Checkout Session URL for subscription.
  - `checkout_url` string, required: Stripe Checkout URL for subscription
  - `session_id` string, required: Stripe Checkout Session ID (empty string for inline upgrades)

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error
- `503`: Service Unavailable

## Changes

- **2026-10-09** `61a175e8eb9a`: 1 warning, 5 info
  - removed the optional property `detail` from the response with the `422` status
  - added the non-success response with the status `429`
  - added the non-success response with the status `503`
  - added the optional property `success` to the response with the `422` status
  - …2 more
- **2026-08-09** `5d4c905106b4`: 1 info
  - the endpoint scheme security `BearerAuth` was added to the API

[Operation history](https://skmtc.dev/mixpeek/apis/mixpeek-api/changes/v1/organizations/billing/subscribe/post.md)

---

[API](https://skmtc.dev/mixpeek/apis/mixpeek-api.md) - [All operations](https://skmtc.dev/mixpeek/apis/mixpeek-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mixpeek/apis/mixpeek-api/revisions/790bc16455f6?raw)
