---
title: "Create a Stripe Customer Portal session for an organization"
method: POST
path: "/billing/portal-session"
---

# Create a Stripe Customer Portal session for an organization

`POST /billing/portal-session`

## Request

- Base URL: `https://api.eurobase.dev`
- URL: `https://api.eurobase.dev/billing/portal-session`
- Auth: HTTP bearer

## Request body

- object
  - `organizationId` string, required
  - `flow` 'cancel': Open the portal on the cancellation step for the organization subscription

## Response `201`

Stripe Customer Portal redirect URL

- BillingPortalSessionResponse
  - `url` string, uri, required

## Other responses

- `400`: Unknown portal flow
- `409`: No Stripe customer exists for this organization, or no subscription can be canceled

---

[API](https://skmtc.dev/eurobase/apis/eurobase-api.md) · [All operations](https://skmtc.dev/eurobase/apis/eurobase-api/llms.txt) · [OpenAPI document](https://skmtc.dev/eurobase/apis/eurobase-api/revisions/5266a299d18a?raw)
