curl --request POST \
--url https://api.example.com/api/v1/billing/portal{
"url": "https://billing.stripe.com/p/session/..."
}
Generate a Stripe Customer Portal URL for subscription management.
curl --request POST \
--url https://api.example.com/api/v1/billing/portal{
"url": "https://billing.stripe.com/p/session/..."
}
curl -X POST \
-H "Authorization: Bearer <token>" \
https://app.taxhomebase.com/api/v1/billing/portal
{
"url": "https://billing.stripe.com/p/session/..."
}
| Status | Cause |
|---|---|
| 400 | User has no Stripe customer ID (never subscribed) |
| 503 | Stripe is not configured |