new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Plugins · all subjects

stripe/api-methods

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Stripe subscription upgrade API method

POST /subscription/upgrade creates or switches a subscription. Parameters: plan (string, required), annual (boolean, optional), referenceId (string, optional, defaults based on customerType), subscriptionId (string, optional, required when upgrading existing), metadata (object, optional), customerType ('user' or 'organization', default 'user'), seats (number, optional), locale (string, optional, IETF tag), successUrl (string, required), cancelUrl (string, required), returnUrl (string, optional), disableRedirect (boolean, default false), scheduleAtPeriodEnd (boolean, optional, default false).

Stripe subscription list API method

GET /subscription/list lists active subscriptions. Parameters: referenceId (string, optional), customerType ('user' or 'organization', default 'user'). Requires session. Returns subscriptions with status field ('active', 'trialing', 'canceled', etc) and limits object if configured on the plan.

Stripe subscription cancel API method

POST /subscription/cancel cancels a subscription. Parameters: referenceId (string, optional, defaults based on customerType), customerType ('user' or 'organization', default 'user'), subscriptionId (string, optional), returnUrl (string, required). Redirects user to Stripe Billing Portal.

Stripe subscription restore API method

POST /subscription/restore restores subscriptions with pending cancellation or scheduled plan change. Only works for active subscriptions with pending changes, not for already-ended subscriptions. Parameters: referenceId (string, optional, defaults based on customerType), customerType ('user' or 'organization', default 'user'), subscriptionId (string, optional). Handles both pending cancellation (clears cancelAtPeriodEnd, cancelAt, canceledAt) and pending plan changes (releases Stripe schedule).

Stripe billing portal API method

POST /subscription/billing-portal creates a Stripe billing portal session. Parameters: locale (string, optional, IETF tag), referenceId (string, optional), customerType ('user' or 'organization', default 'user'), returnUrl (string, optional), disableRedirect (boolean, optional, default false). Returns response with data.url for redirect.

Give your agent this brain