---
title: "Create a Stripe Billing Portal session"
method: POST
path: "/api/billing/portal"
---

# Create a Stripe Billing Portal session

`POST /api/billing/portal`

## Request

- Base URL: `https://api.seenpaid.com`
- URL: `https://api.seenpaid.com/api/billing/portal`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.seenpaid.com/authorize`, token URL `https://api.seenpaid.com/token`, scopes: `org:billing`)

## Request body

- object
  - `returnUrl` string, uri, required

## Response `200`

OK

- object
  - `success` true
  - `data` object
    - `url` string, uri

## Other responses

- `400`: Request body failed Zod validation.
- `401`: Missing or invalid credential (API key or OAuth token).
- `403`: Authenticated, but the caller's role/scope lacks the required permission.

---

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