---
title: "Create checkout session"
method: POST
path: "/stripe/checkout/subscription"
tags: ["Billing"]
---

# Create checkout session

`POST /stripe/checkout/subscription`

Initiates a Stripe checkout session for user subscription purchases.

## Request body

- CreateCheckoutSessionRequest
  - `price_id` string, required — The Stripe price ID for the subscription plan
  - `country_code` string — Two-letter country code used for regional pricing
  - `client_geoip_country_code` string — Two-letter country code observed by the client GeoIP store before checkout
  - `eu_withdrawal_waiver_accepted` boolean — Whether the EU/EEA digital content withdrawal waiver was expressly accepted before checkout
  - `pricing_mode` 'localized' | 'base'
  - `payment_method` 'card' | 'pix' | 'upi'
  - `is_business` boolean — Whether the purchase is for a business. When true, Stripe Checkout requires a billing address (needed for tax invoicing). When false or omitted, billing address collection is left to Stripe (auto).

## Response `200`

Success

- UrlResponse
  - `url` string, required — The URL to redirect to

## Other responses

- `400` — Bad Request - The request was malformed or contained invalid data
- `401` — Unauthorized - Authentication is required or the token is invalid
- `403` — Forbidden - You do not have permission to perform this action
- `429` — Too Many Requests - You are being rate limited
- `500` — Internal Server Error - An unexpected error occurred

---

[API](https://skmtc.dev/fluxer/apis/fluxer-api.md) · [All operations](https://skmtc.dev/fluxer/apis/fluxer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fluxer/fluxer-api/revisions/d9c706133cc5/schema)
