API referenceGenerated
Checkout Session
Start hosted Checkout for a self-serve tier; returns the Stripe-hosted URL to redirect to.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/billing/checkout-session" \ -H "Content-Type: application/json" \ -d '{ "plan_id": "string" }'{ "url": "string"}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}