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");
Create a Stripe customer portal session URL for a customer.
POST
/
v1
/
customers
/
{customerId}
/
customer_portal
Node.js
Copy
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");