---
title: "Create Stripe Checkout session"
method: POST
path: "/api/create-checkout-session"
---

# Create Stripe Checkout session

`POST /api/create-checkout-session`

## Request

- Base URL: `https://marketnow.site`
- URL: `https://marketnow.site/api/create-checkout-session`
- Auth: none declared

Creates a Stripe Checkout session for purchasing a skill. Returns a URL that the user (or agent's human operator) should be redirected to. After payment, Stripe redirects back to /vault?success=true&skillId=X.

**This endpoint creates real charges in LIVE mode.**

## Request body

- object
  - `skillId` string, required: Skill ID (e.g. mn-gen-00015)
  - `affiliateCode` string: Optional affiliate code for commission tracking

## Response `200`

Checkout session created

- object
  - `url` string, uri: Stripe Checkout URL
  - `sessionId` string: Stripe session ID (cs_live_...)

## Other responses

- `400`: Missing skillId
- `404`: Skill not found
- `503`: Stripe not configured

---

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