---
title: "Get Customer Portal Url"
method: GET
path: "/api/v1/payments/me/customer-portal"
tags: ["User APIs", "payments"]
---

# Get Customer Portal Url

`GET /api/v1/payments/me/customer-portal`

## Request

- Base URL: `https://carbonarc.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://carbonarc.ai/api/v1/payments/me/customer-portal`
- Auth: OAuth 2 (authorization code, authorization URL `authorize`, token URL `token`)

## Query parameters

- `type` 'payment_method_update' | 'subscription_cancel' | 'subscription_update' | 'billing_update': Type of customer portal session
- `return_url` string, nullable: URL to redirect to after the customer portal session

## Response `200`

Successful Response

- CustomerPortalResponse: Response schema for customer portal session
  - `client_id` string, required: Client ID used for the request
  - `stripe_customer_id` string, required: Stripe customer ID found for the client
  - `session_id` string, required: Stripe customer portal session ID
  - `url` string, required: Customer portal URL
  - `return_url` string, required: Return URL for after the session
  - `customer_id` string, required: Stripe customer ID
  - `created` integer, required: Timestamp when the session was created

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/carbonarc/apis/carbon-arc-client-admin-api.md) · [All operations](https://skmtc.dev/carbonarc/apis/carbon-arc-client-admin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/carbonarc/apis/carbon-arc-client-admin-api/revisions/56e2edae9dfe?raw)
