---
search:
  tags:
    - Billing
    - POST
seo:
  description: >-
    Returns the URL of the Stripe Customer Portal, for invoices… Reference for
    the POST /organizations/{organizationId}/billing/portal endpoint in the Auth
    API.
sidebar:
  label: Open the Stripe Customer Portal
  badge: POST
title: Open the Stripe Customer Portal
type: openapi-operation
---
Returns the URL of the Stripe Customer Portal, for invoices and payment methods. Requires organization:update. Answers 404 before the organization's first checkout.

`POST /organizations/{organizationId}/billing/portal`

**Request body** (`application/json`, required)

- `return_url` (string<uri>, required) — A console URL Stripe returns to.

Request body example:

```json
{
  "return_url": "http://example.com"
}
```

**Responses**

- `200` — The Stripe page to open.
- `default` — The request failed.

Response example, 200:

```json
{
  "url": "http://example.com"
}
```
