---
title: "Open the Stripe Customer Portal"
method: POST
path: "/api/billing/portal"
tags: ["Billing"]
---

# Open the Stripe Customer Portal

`POST /api/billing/portal`

## Request

- Base URL: `https://slimlytics.com`
- URL: `https://slimlytics.com/api/billing/portal`
- Auth: HTTP bearer

Session login only. Manage payment methods, change plans, or cancel.

## Response `200`

Portal URL

- object
  - `url` string, uri, required
  - `portal` boolean: True when an existing subscriber is sent to the Customer Portal instead

## Other responses

- `401`: Authentication required
- `403`: Insufficient site role

---

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