Generate a short-lived customer portal URL for a user’s personal billing or an organization’s team billing.
billing scope. See
Authentication.
"user" (default when personal) or "org" (default when the caller is
inside a team and holds manageBilling). Team scope additionally
requires the team to have a payment method already on file — callers
who try the team portal before funding billing get a 409
team_billing_setup_required error instead.| Status | Code | Meaning |
|---|---|---|
| 400 | org_context_required | Requested scope: "org" without an active team. |
| 403 | permission_denied | Caller lacks manageBilling in the active team. |
| 409 | team_billing_setup_required | Team has no payment method on file — run a checkout first. |
| 503 | billing_unavailable | Billing isn’t configured on this deployment. |