---
title: "Stripe's billing portal — payment method, invoices, cancelling"
method: POST
path: "/workspaces/{id}/billing-portal"
tags: ["billing"]
---

# Stripe's billing portal — payment method, invoices, cancelling

`POST /workspaces/{id}/billing-portal`

## Request

- Base URL: `https://api.swingfactor.ai/v1`
- URL: `https://api.swingfactor.ai/v1/workspaces/{id}/billing-portal`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Response `200`

Where to send the browser.

- RedirectUrl
  - `url` string, uri, required

## Other responses

- `401`: No token, or not a valid one: `unauthorized`.
- `403`: Only the owner manages billing.
- `409`: Never billed, so there is nothing to manage.

---

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