Files
cfw-autumn/apps/docs/mintlify/api-reference/billing/openCustomerPortal.mdx
2026-05-19 11:51:13 +01:00

44 lines
1.1 KiB
Plaintext

---
title: "Open Customer Portal"
openapi: "openapi POST /v1/billing.open_customer_portal"
---
import { DynamicParamField } from "/snippets/dynamic-param-field.jsx";
import { DynamicResponseField } from "/snippets/dynamic-response-field.jsx";
import { DynamicResponseExample } from "/snippets/dynamic-response-example.jsx";
### Body Parameters
<DynamicParamField body="customer_id" type="string" required>
The ID of the customer to open the billing portal for.
</DynamicParamField>
<DynamicParamField body="configuration_id" type="string">
Stripe billing portal configuration ID. Create configurations in your Stripe dashboard.
</DynamicParamField>
<DynamicParamField body="return_url" type="string">
URL to redirect to when back button is clicked in the billing portal
</DynamicParamField>
### Response
<DynamicResponseField name="customer_id" type="string">
The ID of the billing portal session
</DynamicResponseField>
<DynamicResponseField name="url" type="string">
URL to the billing portal
</DynamicResponseField>
<ResponseExample>
```json 200
{
"customer_id": "cus_123",
"url": "https://billing.stripe.com/session/..."
}
```
</ResponseExample>