Organization Billing
Confirm Payment Method
Changed onConfirm 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"}
)
post/v1/organizations/billing/confirm-payment-method
Request
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/organizations/billing/confirm-payment-method
- Auth: HTTP bearer
Request body
Example request
{
"payment_method_id": "pm_1ABC2DEF3GHI456"
}Response
Successful Response
Example response
{
"payment_method": {
"type": "card",
"card_last4": "4242",
"card_brand": "visa"
}
}Changes
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning
- info
the endpoint scheme security
BearerAuthwas added to the API
- info