Subscriptions
A Subscription in Moesif represents a single plan a customer has subscribed to and paying for. It corresponds to the Subscriptions entity for billing providers such as Stripe. For more information, see Provider Mapping.
This document describes how you can look up and analyze existing subscriptions using Moesif.
How Subscriptions Relate to Companies
To understand how Subscriptions relate to Companies in Moesif, let’s see how Moesif models its data structure.
Apart from API Calls and Actions event types, Moesif also tracks these entities:
The following diagram illustrates how these components relate to one another:
These events and entities constitute Moesif’s data structure for its API analytics, observability, and monetization capabilities.
Subscriptions are how Moesif implements various monetization features in its platform. A subscription describes how a Company makes recurring payments for a specific product under a plan. A Company can have one or more subscriptions, as you can see in the diagram.
With a built-in subscriptions model, Moesif natively integrates with different billing providers like Stripe and how they implement subscriptions. This allows you to perform various analytics on your customers based on different subscription and billing criteria.
The following sections demonstrate some of the operations you can perform on subscription data in Moesif Web Portal.
Filter on Subscription Data
You can filter on subscription data in Moesif API
and customer analytics by selecting from the
Subscription
filters. In an API analytics workspaces like a Time Series, or a
User Lookup, you can
access subscription filters in Company.Subscriptions
in the Filters pane.
In a Company Lookup, they are available in Subscriptions
in the
Filters pane.
For more information about the available subscription filters, see Subscription Filters Reference.
The following sections showcase some example filtering scenarios.
Filter Active Stripe Subscriptions
Here, in a Company Lookup, we define two filters to to see what companies have active subscriptions in Stripe.
Subscriptions.status.is.active
Subscriptions.provider.is.stripe
Segment Customers By Subscription Plans
The following example uses a Segmentation analysis to break down unique users based on various Stripe subscription plans. To do so, it defines the following analysis settings:
- Set the
Company.Subscriptions.provider
filter value tostripe
. - Define the Group By filter as
Company.Subscriptions.items.plan.name
.
Access Subscription Details in Company Profile
In a Company Lookup, you can select a company ID and open a Company Profile view of that company. It contains, among other information, the company’s subscription-related information like subscription ID, the plans and prices they’ve subscribed to, and balances.
If a company has multiple subscriptions, you can see the respective details in separate columns in the Company Profile:
Company Profile also contains the following real-time visualizations in the Billing Usage and Subscription Balance panes respectively.
- Usage and associated cost
- Subscription balances