---
title: "Create Checkout Session"
method: POST
path: "/v1/orgs/{org_id}/billing/checkout-session"
tags: ["billing"]
---

# Create Checkout Session

`POST /v1/orgs/{org_id}/billing/checkout-session`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/orgs/{org_id}/billing/checkout-session`
- Auth: none declared

## Path parameters

- `org_id` string, required

## Request body

- CheckoutIn
  - `plan` 'free' | 'hobby' | 'pro' | 'team' | 'enterprise', required: Target plan to subscribe to (free is not allowed)
  - `cadence` 'monthly' | 'yearly'
  - `success_url` string, uri, required
  - `cancel_url` string, uri, required

## Response `200`

Successful Response

- CheckoutOut
  - `url` string, required
  - `session_id` string, required

## Other responses

- `422`: Validation Error

---

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