---
title: "Create a Stripe Checkout session (direct path alias)"
method: POST
path: "/stripe/checkout"
tags: ["billing"]
---

# Create a Stripe Checkout session (direct path alias)

`POST /stripe/checkout`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/stripe/checkout`
- Auth: none required

## Request body

- CheckoutRequest
  - `priceId` string, required
  - `mode` 'subscription' | 'payment'
  - `successUrl` string, required
  - `cancelUrl` string, required
  - `customerEmail` string

## Response `200`

Checkout session created

- CheckoutResponse
  - `sessionId` string, required
  - `url` string, required

## Other responses

- `401`: Unauthorized

## Changes

- **2026-04-18** `518dcf68679a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/stripe/checkout/post.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
