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

# Subscribe To Plan

`POST /v1/organizations/billing/subscribe`

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` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/mixpeek/apis/mixpeek-api.md) · [All operations](https://skmtc.net/mixpeek/apis/mixpeek-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixpeek/mixpeek-api/revisions/c768d4d28e4c/schema)
