Subscription schedules use cases
Learn how to use subscription schedules.
To understand subscription schedules, imagine a fictional newspaper company called The Pacific. It offers two subscription options:
- Print, where customers receive the physical paper
- Digital, where customers get access to exclusive content on The Pacific’s website
Both subscriptions bill monthly. Browse possible options for subscription schedules below.
Start a subscription in the future
By default, new print subscriptions start on the first day of the next month. To accomplish this, the start_
is set to a point in the future. The code below creates a subscription that starts in the future:
Backdate a subscription
When customers subscribe to the digital plan, The Pacific backdates their subscriptions to the first day of the current month. Backdating charges for time in the past and allows digital subscribers to access the website immediately.
Add a schedule to an existing subscription
The Pacific may discover that some of their original customers are on subscriptions without schedules. Because these subscriptions exist already, the subscription IDs can be passed in the from_
attribute to add a schedule. Passing the subscription IDs in this way creates a schedule with one phase that’s based on the current billing period of the subscription.
While adding these schedules, some customers decide to get a print subscription so The Pacific adds a second phase to the schedule to start the print plan one month from now. The following use case shows an example of this process.
Upgrade subscriptions
The Pacific offers an option to start with a print subscription for one month, then automatically add the digital option. Some customers prefer this because they can test out the print publication first and then decide if they want to continue or cancel their subscription.
Downgrade subscriptions
The Pacific also offers an option to start a subscription with both the print and digital publications, and then downgrade to only the print publication for the rest of the subscription. Customers use this option to test out both publications to see how they like them.
Change subscriptions
The Pacific offers two print subscription options, a basic option with advertisements or a premium option without advertisements. Some customers on the premium option decide they want to change to the basic option with advertisements at the next billing cycle. Create a schedule using the existing subscription and then update the schedule with the basic option with advertisements as a new phase.
Increase the quantity
You can also schedule increases to the quantities on a subscription. The schedule below starts with one instance of the digital publication for one month. In the second phase, the quantity is increased to 2 for 11 more months.
Use coupons
Sometimes The Pacific runs subscription specials. The schedule below starts the customer on the print publication at 50% off for six months. The schedule removes the coupon from the subscription in the second phase, which entails the remaining six months.
Change tax rates
The Pacific operates in several jurisdictions, and some of them have unique tax rates for subscription based businesses. One of these jurisdictions requires two tax rates: one for the first month when a customer initially subscribes, and one for recurring billings.
Release a subscription from a schedule
You can release a subscription from a schedule as long as the status of the schedule is not_
or active
. Releasing a subscription leaves it in place but removes the schedule and any remaining phases.
Cancel a schedule and subscription
You can cancel a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be cancelled if its status is not_
or active
.
Reset the billing cycle anchor
The Pacific bills their long-time print customers on whichever day of the month they originally subscribed. This day is their billing cycle anchor.
If these customers transition to the digital edition, The Pacific schedules their transition date for the 1st day of the following month. They also reset the billing cycle anchor to that same date.
You can verify that the billing cycle anchor gets reset by creating a subscription using the sample code below. Look at the subscription in the Dashboard, and notice that the Upcoming Invoice is scheduled to bill the customer as soon as the digital subscription starts on the 1st.
To see what happens if you don’t reset the anchor, run the sample code again, but remove the line that sets the billing cycle anchor to phase_
. Without that line, the Upcoming Invoice in the Dashboard waits to bill the customer until a full month from today, despite the transition that occurs on the 1st.
Instalment plans
Installment plans allow customers to make partial payments for a set amount of time until the total amount is paid. For example, when The Pacific buys new printing presses, they sell the used ones to other publications. Smaller publications rarely have enough funds to pay for a printing press upfront, so they pay using an installment plan instead.
For most presses, The Pacific charges 1,000 USD per month so a reusable price is created:
Depending on the make, model, and age of the printing press, The Pacific charges different amounts. This example charges 1,000 USD each month for 6 months, for a total of 6,000 USD.
The number of iterations
is multiplied by the price’s interval – 6 monthly payments in this example – to determine the number of times the customer is charged. end_
determines what happens to the subscription after the last iteration is complete. In an instalment plan, the subscription isn’t needed anymore so end_
is set to cancel
.
In rare cases, The Pacific charges less than the usual 1,000 USD per month. In these scenarios, they use price_
to create a single-use price. This example creates a 500 USD price, and charges monthly for 6 months: