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:
Example:
# After Stripe Elements confirms setup
response = await client.post(
"/v1/organizations/billing/confirm-payment-method",
json={"payment_method_id": "pm_1ABC2DEF3GHI"}
)
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
Payment method confirmation
Stripe PaymentMethod ID from frontend
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