Create or recover a hosted Checkout Session

View as Markdown

Create an authenticated user’s server-configured Pro Checkout Session.

Authentication

AuthorizationBearer

User bearer token: Supabase or Clerk session JWT, Clerk OAuth access token, or Clerk personal API key

Request

This endpoint expects an object.
planenumRequired
Pro billing plan selected for hosted Checkout

Response

OK
expiresAtdatetime
planenum
Canonical Pro billing plan offered by aVenture.
urlstringformat: "uri"

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
406
Not Acceptable Error
409
Conflict Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error