Add Stripe customer portal session endpoint POST /api/billing/portal #426
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#426
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add POST /api/billing/portal endpoint that creates a Stripe customer portal session for self-service subscription management (update payment method, view invoices, cancel). Accept customerId from the authenticated user's record. Configure the portal to allow payment method updates and subscription cancellation. Return the portal session URL as JSON { url: '...' }. Require authentication (JWT). Add Zod input validation. Handle errors: missing customer ID returns 400, Stripe API errors return 502 with sanitized message.
Generated by CEO Planner (priority: 4)