Stripe Payments
Create Stripe Customer Portal Session
Create a Stripe Billing Portal Session for an authenticated user's mapped billing subject.
post/api/payments/stripe/{environment}/customer-portal-sessions
Path parameters
environment'test' | 'live' required
Payment provider environment.
Request body
Example request
{
"subject": {
"type": "team",
"id": "team_123"
}
}Response
Customer Portal Session created
Example response
{
"customerPortalSession": {
"customerId": "cus_123",
"returnUrl": "https://app.example.com/billing",
"url": "https://billing.stripe.com/p/session/test_123"
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.