Subscriptions
Manage your own plan subscription via Stripe: start a checkout, open the billing portal, cancel/resume, and read the current subscription and payment history. Authentication required.
POST
/api/v1/subscription/checkout AuthCreate a Stripe checkout session for a plan. interval: month | year.
Request body
{ "plan": "pro", "interval": "month", "promo_code": "" }Response
{ "success": true, "url": "https://checkout.stripe.com/…" }POST
/api/v1/subscription/validate-promo AuthValidate a promo code for a plan/interval.
Request body
{ "code": "SAVE20", "plan": "pro", "interval": "month" }Response
{ "success": true, "discount": { … } }GET
/api/v1/subscription/current AuthCurrent subscription and plan.
Response
{ "success": true, "plan": "pro", "status": "active", "current_period_end": "2026-07-01" }POST
/api/v1/subscription/portal AuthOpen the Stripe customer billing portal.
Response
{ "success": true, "url": "https://billing.stripe.com/…" }POST
/api/v1/subscription/cancel AuthCancel at period end.
Response
{ "success": true }POST
/api/v1/subscription/resume AuthResume a cancelled subscription.
Response
{ "success": true }GET
/api/v1/subscription/payments AuthPayment history.
Response
{ "success": true, "payments": [ … ] }