---
title: "POST /api/public/v1/billing/openPortal"
method: POST
path: "/api/public/v1/billing/openPortal"
---

# POST /api/public/v1/billing/openPortal

`POST /api/public/v1/billing/openPortal`

## Request

- Base URL: `https://app.fortuneos.ai`
- URL: `https://app.fortuneos.ai/api/public/v1/billing/openPortal`
- Auth: none declared

A Stripe Customer Portal session's URL for the business, returning to its Billing page. `flow` opens it straight on replacing the card (`paymentMethodUpdate`) or cancelling the live subscription (`subscriptionCancel`). Refused with FORBIDDEN for a demo business, and with PRECONDITION_FAILED when the business has no billing account yet, or no live subscription to cancel. For a classified test organization's Stripe Sandbox records: refused with FORBIDDEN as `sandboxNotAllowed` unless the caller is a verified Fortune OS employee, and with PRECONDITION_FAILED as `billingNotConfigured` while the Sandbox is not configured; the experiment is not asked.

## Request body

- object
  - `organizationId` string, required
  - `flow` 'paymentMethodUpdate' | 'subscriptionCancel'

## Response `200`

OK

- unknown

## Changes

- **2026-10-24** `08398fc8834c`: 1 info
  - added the new optional request property `flow`

[Operation history](https://skmtc.dev/fortis/apis/fortune-os-api/changes/api/public/v1/billing/openPortal/post.md)

---

[API](https://skmtc.dev/fortis/apis/fortune-os-api.md) - [All operations](https://skmtc.dev/fortis/apis/fortune-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fortis/apis/fortune-os-api/revisions/522f3cea550d?raw)
