Create or Reuse a Checkout Session
Start the selected AI Plus or AI Pro plan through Checkout: uiMode HOSTED_PAGE (the default) returns a hosted page url; ELEMENTS returns a clientSecret and publishableKey for the Payment Element in the caller’s page. A caller with a continuing subscription changes plan with POST /v1/billing/plan-changes and cancels or resumes it with PATCH /v1/billing/subscription.
Authentication
Your aVenture API key (https://aventure.vc/settings/api-keys) or OAuth access token
Request
How the caller presents Checkout; HOSTED_PAGE when omitted
Response headers
Requests allowed per client IP in the current rate-limit window.
Requests left before the tightest applicable rate-limit bucket rejects.
Seconds until the exhausted rate-limit bucket admits another request; 0 when none is exhausted.
Response
Checkout Session client secret for Stripe.js initCheckout; set for ELEMENTS
Stripe publishable key that loads Stripe.js; set for ELEMENTS
Hosted Checkout page to open in a browser; set for HOSTED_PAGE