Confirm Payment Method
Confirm payment method after frontend collects it.
After Stripe Elements confirms the SetupIntent, call this endpoint to attach the payment method to the customer and enable auto-billing.
Requirements:
- Admin permission
- Must have called setup-payment-method first
Example:
# After Stripe Elements confirms setup
response = await client.post(
"/v1/organizations/billing/confirm-payment-method",
json={"payment_method_id": "pm_1ABC2DEF3GHI"}
)
Authorizations
Mixpeek API key, sent as Authorization: Bearer mxp_sk_.... Create one in Studio under Settings → API Keys, or with an admin key via POST /v1/organizations/users/{user_email}/api-keys. A missing header returns 403; an invalid or revoked key returns 401.
Body
Payment method confirmation
Stripe PaymentMethod ID from frontend
"pm_1ABC2DEF3GHI456"
Response
Successful Response
Response after confirming payment method.
Confirmed payment method details
Whether auto-billing is now enabled
When the current billing period started
Whether payment method was successfully confirmed

