Skip to main content
POST
/
v1
/
customers
/
{customerId}
/
customer_portal
Node.js
import { PriceOS } from "priceos";
import type { MyFeatures } from "./priceos.types";

const priceos = new PriceOS<MyFeatures>(process.env.PRICEOS_API_KEY!);

const session = await priceos.customers.createPortal("customer_123");
{
  "url": "https://billing.stripe.com/p/session/test_123"
}

Headers

x-api-key
string
required

API key from your PriceOS dashboard.

Path Parameters

customerId
string
required

Internal customer ID.

Response

Customer portal session

url
string<uri>
required

Stripe customer portal URL.