Setup Payment Method
Billing
Setup Payment Method
Initialize payment method setup flow.
Creates a Stripe SetupIntent for collecting payment method without charging. The client_secret should be used with Stripe Elements on the frontend.
Flow:
- Frontend calls this endpoint
- Backend creates Stripe Customer (if needed) and SetupIntent
- Frontend uses client_secret with Stripe Elements
- User enters card details
- Frontend calls confirm-payment-method endpoint
Requirements:
- Admin permission (only org admins can set up payment methods)
Example:
response = await client.post("/v1/organizations/billing/setup-payment-method")
client_secret = response["client_secret"]
# Use client_secret with Stripe Elements
POST
Setup Payment Method
Documentation Index
Fetch the complete documentation index at: https://docs.mixpeek.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
Example:
"Bearer YOUR_MIXPEEK_API_KEY"
Response
Successful Response

