> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getbutter.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Billing Portal

Generate a secure portal link for an organization to manage their subscription. Users can cancel subscriptions, update payment methods, and view historical invoices.

### Request

<ParamField header="X-Organization-Id" type="string" required>
  The unique identifier of the organization.
</ParamField>

<ParamField body="return_url" type="string" required>
  The URL where the user should be redirected after finishing their session in the billing portal.
</ParamField>

### Response

<ResponseField name="portal_url" type="string">
  The unique, temporary URL to access the Dodo Payments customer portal.
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "portal_url": "https://portal.dodopayments.com/session/ps_ghi789"
  }
  ```
</ResponseExample>
