Skip to main content
In the Bango Subscriptions API:
  • A product is the physical or virtual item or service the user receives as part of the subscription, and is made available for subscription under one or more plans
  • A plan defines the terms on which the user has access to the product, as an ordered list of phases
  • A phase defines a period of time, a price, and a billing period
As time passes, a subscription to a product under a plan passes through each of the plan’s phases in turn. The subscription might eventually end (for example, by user cancellation) or might continue indefinitely. In addition, each subscription has a state value. The state is always one of:

Example: free trial

Let’s look at an example plan and see what happens over time. The product catalog contains the product “Bango Music”, with a full price of USD 5.99 per month, and one of its plans is “Free trial – three months”. The phases would be:
  1. A Trial phase, duration three months, at zero cost
  2. An Evergreen phase, of unlimited duration, at price USD 5.99, billed monthly in advance
On September 1, 2020, Alice creates a subscription to the Bango Music service under the “Free trial – three months” plan. The service is made available to her immediately. In mid February 2021 she decides to cancel the plan, and the customer portal she uses ensures she continues to have access to the service until the next payment point. Here’s the complete timeline: