Mayson Monorepo Documentation
    Preparing search index...

    The Billing customer portal is a Stripe-hosted UI for subscription and billing management.

    A portal configuration describes the functionality and features that you want to provide to your customers through the portal.

    A portal session describes the instantiation of the customer portal for a particular customer. By visiting the session's URL, the customer can manage their subscriptions and billing details. For security reasons, sessions are short-lived and will expire if the customer does not visit the URL. Create sessions on-demand when customers intend to manage their subscriptions and billing details.

    Related guide: Customer management

    interface Session {
        id: string;
        object: "billing_portal.session";
        configuration: string | Stripe.BillingPortal.Configuration;
        created: number;
        customer: string;
        customer_account: string;
        flow: Stripe.BillingPortal.Session.Flow;
        livemode: boolean;
        locale: Stripe.BillingPortal.Session.Locale;
        on_behalf_of: string;
        return_url: string;
        url: string;
    }
    Index

    Properties

    id: string

    Unique identifier for the object.

    object: "billing_portal.session"

    String representing the object's type. Objects of the same type share the same value.

    configuration: string | Stripe.BillingPortal.Configuration

    The configuration used by this session, describing the features available.

    created: number

    Time at which the object was created. Measured in seconds since the Unix epoch.

    customer: string

    The ID of the customer for this session.

    customer_account: string

    The ID of the account for this session.

    Information about a specific flow for the customer to go through. See the docs to learn more about using customer portal deep links and flows.

    livemode: boolean

    Has the value true if the object exists in live mode or the value false if the object exists in test mode.

    The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the customer's preferred_locales or browser's locale is used.

    on_behalf_of: string

    The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this on_behalf_of account appear in the portal. For more information, see the docs. Use the Accounts API to modify the on_behalf_of account's branding settings, which the portal displays.

    return_url: string

    The URL to redirect customers to when they click on the portal's link to return to your website.

    url: string

    The short-lived URL of the session that gives customers access to the customer portal.