Organization Billing
Create Checkout
Changed onCreate a Stripe Checkout Session for a one-time credit purchase.
Allows organization admins to purchase credit packages via Stripe Checkout. After successful payment, credits are automatically added to the organization.
Available Packages:
- starter: 10,000 credits — $10
- growth: 50,000 credits — $40
- scale: 200,000 credits — $120
Requirements:
- Admin permission
Example:
response = await client.post(
"/v1/organizations/billing/checkout",
json={"package": "growth"}
)
# Redirect user to response["checkout_url"]
post/v1/organizations/billing/checkout
Request
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/organizations/billing/checkout
- Auth: HTTP bearer
Request body
Example request
{
"package": "starter"
}Response
Successful Response
Example response
{
"checkout_url": "https://checkout.stripe.com/c/pay/cs_live_abc123",
"session_id": "cs_live_abc123"
}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