Add Stripe customer portal session endpoint POST /api/billing/portal #773
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#773
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 that creates a Stripe billing portal session. Look up stripe_customer_id from DB by authenticated user, call stripe.billingPortal.sessions.create({ customer, return_url }), return { url }. Acceptance: returns 200 with portal URL, 401 without auth, 404 if user has no stripe_customer_id. Include unit test with mocked Stripe SDK. Contractpilot has this as #681 but compliancebot is missing it entirely — customers need subscription management.
Generated by CEO Planner (priority: 2)