---
title: "Create Checkout Session Route"
method: POST
path: "/stripe/create_checkout_session"
---

# Create Checkout Session Route

`POST /stripe/create_checkout_session`

## Request

- Base URL: `https://api.robopost.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.robopost.app/stripe/create_checkout_session`
- Auth: HTTP bearer

Creates a checkout session. If the price_id corresponds to an
ad-credit item, we attach additional metadata so that the
post-payment webhook can properly credit the team.

Updated logic: if we have `adcredit_item` or `is_ltd`, then `mode` is "payment". Otherwise, "subscription".

## Query parameters

- `price_id` string, required
- `client_reference_id` string

## Response `200`

Successful Response

- unknown

## Other responses

- `404`: Not found
- `422`: Validation Error

---

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