v1

latestOpenAPI 3.0.32026-07-26172157253.6 KB
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

returnUrlstring uri
configurationstring

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"
  }
}