maddoxdocs

Billing

Plans catalog, usage, checkout, upgrades/downgrades, and invoices. GET /v1/plans is public; the rest are Bearer-authenticated and derive the tenant from your key.

Endpoints#

MethodPathPurpose
GET/v1/plansPublic pricing/limits catalog (the source of truth).
GET/v1/usageYour current-period render/synthesis usage.
POST/v1/checkout/createStart a Stripe Checkout session to move to a paid tier.
POST/v1/subscriptions/upgradeMid-cycle upgrade (prorated).
POST/v1/subscriptions/downgradeDeferred downgrade at period end.
POST/v1/billing/portalStripe billing-portal session (manage card, plan, invoices).
GET/v1/billing/invoicesList invoices for the Billing UI.
cURL
# The catalog every client should read tier numbers from — never hardcode.
curl https://api.maddoxapi.dev/v1/plans
CautionDo not hardcode prices or limits from docs. GET /v1/plans is the canonical, always-current catalog; pin client pricing to it so display can't drift from what you actually bill.