View as Markdown

SDK reference · Node SDK

prov.account.billingPortal

prov.account.billingPortal in Node SDK. Billing go-live: a Stripe Customer Portal URL (card, invoices, cancel), owner/admin.

Signature

prov.account.billingPortal(): Promise<BillingPortalSession>

Parameters

No parameters.

Request fields

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).

Returns

Promise<BillingPortalSession> The customer portal URL.

HTTP operation

POST /v1/account/billing_portal: Open the billing portal

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/billing_portal`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.