A Stripe customer portal link. Default: straight to updating the card. view: 'home' opens the portal's home page
instead - invoice history, cards, billing details, the subscription - for a "Billing history" button.
"Pay" on a payment request: a URL to send the customer to. The emailed invoice for a normal subscription; a fresh
one-time checkout for Managed Payments (so it never expires on them). Open the URL in the same or a new tab.
"Keep subscription": undo a cancel that was scheduled for the period end. A subscription set to cancel refuses
plan and add-on changes until this is called. 400 when it is not set to cancel, or has already ended.
Cancel a plan / add-on change that is waiting for payment (see PremiumSubscription.pendingChange). Voids its
invoice and drops the change; nothing is charged. 400 when no change is waiting.
Include everything, not just what a customer should see: disabled tiers, inactive addons,
features still launch-gated to 'off'/'beta', and rows flagged showOnPricing: false. For
admin views; leave unset for the public pricing page.
OptionalrefreshCache?: boolean
Deprecated
Misnomer kept for compatibility - it maps to the API's all flag and refreshes no
cache. Use includeUnreleased.
Reconcile the logged-in user's premium roles in the support server to match their entitlements
(user premium + active guild subscriptions). Session-authenticated: auth is the session token.
Backend/support-bot variant: sync an arbitrary user's premium roles in the support server.
Authenticated with the shared backend secret — pass auth as 'Bearer ' + NOTI_BACKEND_SECRET.
A Stripe customer portal link. Default: straight to updating the card.
view: 'home'opens the portal's home page instead - invoice history, cards, billing details, the subscription - for a "Billing history" button.