payments

Create Checkout Session

Create a Stripe Checkout Session for subscribing to a plan.

This redirects the user to Stripe's hosted payment page where Stripe handles ALL payment complexity: card input, 3DS/SCA, OTP, validation.

After successful payment, Stripe:

  1. Creates the subscription automatically
  2. Redirects user back to our success URL
  3. Fires checkout.session.completed webhook
  4. Our webhook handler activates the subscription in our DB

This is the RECOMMENDED approach for new subscriptions. For upgrades (Pro → Premium), use /subscribe which modifies the existing sub.

post/payments/create-checkout-session

Request

  • Base URL
    https://api.oxlo.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.oxlo.ai/payments/create-checkout-session
  • Auth
    HTTP bearer

Request body

planstring required
promo_codestring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.