API Reference
Billing
Pricing catalog, checkout/portal sessions, and billing usage status.
Overview
Billing APIs expose pricing and plan usage details and provide Stripe checkout/portal links for production projects.
What You Will Learn
- How to query public pricing catalog.
- Checkout and portal endpoint behavior and environment restrictions.
- Interpreting quota usage and feature flags from billing status.
Implementation Checklist
- Use /v1/billing/pricing for plan catalog rendering.
- Use /v1/billing/status to enforce product gating in your app.
- Call checkout/portal endpoints only from production projects.
Relevant Endpoints
GET
/v1/billing/pricingPublic pricing catalog by plan and cycle.
POST
/v1/billing/checkoutCreate Stripe checkout session URL.
POST
/v1/billing/portalCreate Stripe customer portal URL.
GET
/v1/billing/statusGet current plan, features, and usage.