---
title: "Create Setup Checkout"
method: POST
path: "/stripe/checkout/setup"
tags: ["stripe"]
---

# Create Setup Checkout

`POST /stripe/checkout/setup`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/stripe/checkout/setup`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Create a Stripe Checkout session to add a payment method.

Optionally pass a tier to auto-subscribe after payment method is saved.

## Request body

- SetupCheckoutRequest: Request to create a setup checkout session for adding payment method.
  - `tier` string, nullable: Optional target tier to subscribe after payment method is saved

## Response `200`

Successful Response

- CheckoutSessionResponse: Response from checkout session creation.
  - `checkout_url` string, required
  - `session_id` string, required

## Other responses

- `422`: Validation Error

---

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