Setup Billing

Setup billing for a user - creates Stripe customer, RevenueCat user, and checkout session

Args: request: Billing setup request with redirect URLs current_user: Authenticated user db: Database session

Returns: BillingSetupResponse with customer ID and checkout URL

post/api/billing/setup

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/billing/setup
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Request body

successUrlstring required
cancelUrlstring required

Response

Successful Response

successboolean
customerIdstring required
checkoutUrlstring required
checkoutSessionIdstring required

Changes

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