Billing

Create a Stripe Checkout Session

Returns a Stripe Checkout URL for the tier you name. If the coach has no Stripe customer yet, this creates one and caches it on the coach row. Success and cancel URLs are forced back to the app origin, so you can't redirect a coach off-site.

Session-only. This endpoint isn't on the API-key allowlist. An organization API key gets a 403 here, whatever scopes it holds.

post/api/billing/checkout

Request

  • Base URL: https://api.setluca.com
  • URL: https://api.setluca.com/api/billing/checkout
  • Auth: API key in cookie luca.session_token

Headers

Luca-API-Version'1'

The major version of the API this client was built against. Omit it and the request is served by the current major version. Any other value is refused with 400 unsupported_api_version.

Request body

successUrlstring uri
cancelUrlstring uri
tier'starter' | 'pro' | 'scale'
billingInterval'month' | 'year'

Response

ok

urlstring nullable required
sessionIdstring required

Changes

No recorded changes to this operation across all 1 revision of this API.