v5

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-0112516159.5 KB

Create billing checkout session

post/billing/checkout

Request body

mode'payment' | 'subscription'
plan_idstring
amountnumber

Example request

{
  "mode": "payment",
  "plan_id": "plan-basic",
  "amount": 100
}

Response

Checkout URL

successboolean

Example response

{
  "success": true,
  "data": {
    "url": "https://checkout.stripe.com/pay/xxx"
  }
}