billing
Create Billing Portal Session
Changed onCreate a Stripe Billing Portal session for a team.
Allows users with billing permissions to manage their subscription, payment methods, and invoices through Stripe's hosted portal.
Args: team_id: Team UUID. return_url: URL to redirect the user back to after the portal. auth: Authenticated user context.
Returns: BillingPortalResponse with the portal URL.
Raises: HTTPException: 403 if not a member or lacks permission, 400 if return_url is untrusted or no Stripe customer exists.
post/v1/billing/team/{team_id}/billing-portal
Request
- Base URLhttps://api.pioneer.ai (the document declares no server; this is the origin it was published from)
- Auth
- API key in header X-API-Key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
team_idstring required
Query parameters
return_urlstring required
URL to redirect to after the portal session
Response
Successful Response
Changes
- info
endpoint added
- info