billing

Create a Stripe Embedded Checkout Session for the given tier. Lazily creates the user's Stripe customer on first call.

Changed on
post/api/billing/checkout

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body

CreateCheckoutRequest required
tier, string required

Tier slug: "base" | "mid" | "high".

Response

Checkout session created

CreateCheckoutResponse required
client_secret, string required

Pass to the Stripe Embedded Checkout React component.

Changes