---
title: "Create a Stripe Checkout session"
method: POST
path: "/api/billing/checkout"
tags: ["User"]
---

# Create a Stripe Checkout session

`POST /api/billing/checkout`

## Request

- Base URL: `https://makefx.app`
- URL: `https://makefx.app/api/billing/checkout`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://makefx.app/api/oauth/authorize`, token URL `https://makefx.app/api/oauth/token`, scopes: `write`)
  - API key in cookie `auth_token`

Creates one idempotent hosted Checkout session for an approved credit amount and owner account.

## Headers

- `API-Version` '2026-09-10'

## Request body

- object
  - `account_id` string, required
  - `amount` 'eur20' | 'eur100', required
  - `request_id` string, required
  - `return_to` string

## Response `200`

Success

- object
  - `checkout_url` string, uri, required
  - `session_id` string, required

## Other responses

- `400`: The request or return target is malformed or unsafe
- `401`: No valid credentials. WWW-Authenticate names the protected resource metadata to start from
- `403`: The credentials are valid but not enough: the token lacks the scope, or the action needs a browser session rather than an app token
- `404`: Not found
- `409`: The request id conflicts with an earlier attempt
- `429`: Rate limited. RateLimit names the policy; Retry-After says when to try again
- `500`: Internal server error
- `503`: Stripe Checkout is unavailable

---

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