APIBilling
Create a checkout session
Create a hosted Stripe Checkout session for first-time subscribe from the terminal. Requires a user credential with billing:manage.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/billing/checkout-session" \ -H "Content-Type: application/json" \ -d '{ "planSlug": "string" }'{ "sessionId": "string", "checkoutUrl": "http://example.com"}