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
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful Response

