---
title: "Open Stripe -- the customer portal if there's a currently-active subscription to manage, otherwise a Pro checkout session"
method: POST
path: "/billing/portal"
tags: ["Billing"]
---

# Open Stripe -- the customer portal if there's a currently-active subscription to manage, otherwise a Pro checkout session

`POST /billing/portal`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/billing/portal`
- Auth: HTTP bearer

## Response `200`

OK

- object
  - `data` object, required
    - `url` string, required
    - `mode` 'portal' | 'checkout', required
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `422`: Stripe not configured for this environment

---

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