Skip to main content
Billing & commerce: per-project billing summary, Stripe checkout/portal redirects, and usage-export configuration. Catalog reads (plans, SKUs, pricing) live on PricingResource. Reach it as client.billing on a QumoClient.

getProjectSummary

Current-period billing snapshot for a project. Types: BillingSummary

createCheckoutSession

Creates an Elements-mode Checkout Session and returns its client_secret. See CheckoutSessionOptions.tenantId for session-caller scoping. Types: CheckoutSessionOptions, CheckoutSession

createPortalSession

Creates a Stripe Customer Portal session. tenantId scopes the request for session (cookie) callers — same contract as CheckoutSessionOptions.tenantId. Types: PortalSession

usageCsvUrl

Builds the CSV usage-download URL for a browser navigation/anchor click (the export endpoint returns a file download, not JSON — the browser performs the cookie-authenticated fetch). Not a request-executing method. Resolves against baseUrl exactly like client.request — including a path-prefixed base — and returns a same-origin relative URL when baseUrl is empty (usable as an href in the browser, harmless elsewhere).