---
title: "Create billing portal session"
method: POST
path: "/v1/billing/portal"
tags: ["Billing"]
---

# Create billing portal session

`POST /v1/billing/portal`

## Request

- Base URL: `https://api.hempdata.io`
- URL: `https://api.hempdata.io/v1/billing/portal`
- Auth: none required

Generates a Stripe billing portal URL for managing an existing subscription.

## Request body

- PortalRequest
  - `email` string, email, required: Email associated with the subscription
  - `return_url` string, uri, required: URL to redirect to when leaving the portal

## Response `200`

Portal session created

- object
  - `success` boolean
  - `data` object
    - `portal_url` string, uri

---

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