Create Checkout Session

Create Stripe checkout session for metered billing subscription

Args: request: Checkout request data current_user: Authenticated user db: Database session

Returns: CheckoutResponse with Stripe checkout URL

post/api/checkout

Request

  • Base URL: https://api.latted.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.latted.com/api/checkout
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Request body

appUserIdstring required
customerEmailstring required
priceIdstring nullable
successUrlstring required
cancelUrlstring required

Response

Successful Response

urlstring required
sessionIdstring required

Changes

No recorded changes to this operation across all 20 revisions of this API.