Periodic Balances
A periodic balance represents a sequence of intervals that are impacted during rating. Each interval is identified by an ID and is valid for a different period of time. Each interval can also contain a different amount. This is unlike simple balances where the entire balance contains one amount.
Periodic balances usually provide an asset amount to a subscriber on a recurring basis. For example, a grant can provide 50 megabytes to a subscriber on a daily basis with daily balance intervals. When usage events are processed, the balance interval used is the one that is valid for the time period and that has an available amount (below the credit limit). During processing, a valid balance interval is used before creating new intervals. When multiple valid intervals exist in a subscriber's wallet, to determine which interval to use, all existing intervals are checked, starting with the earliest period that has not expired by the usage time. Any existing intervals are examined after that. The earliest interval in the set that has an available amount is used.
The number of balance intervals and the size of the intervals is a configuration option you define during pricing configuration. Each balance interval in the same periodic balance is the same period length: hourly, daily, weekly, monthly, yearly, or aligned with the billing cycle. For example, a weekly balance cannot contain a daily balance interval and a monthly balance cannot contain a weekly or daily balance interval. The number of intervals in the periodic balance is called the balance window.
- For periodic balances aligned with the bill cycle, the balance intervals have the same duration as the bill cycle.
- For periodic balances aligned with a purchased item cycle, the balance intervals have the same duration as the purchased item cycle.
- For all other periodic balances, the first interval
start time (time of the day) is determined by the Cycle Start
Type defined in the balance template. The start types are:
- Midnight — The first interval starts at midnight. This is the default setting.
- Absolute — The first interval starts at the time specified by the cycle time defined in the balance template.
- Purchase Time — For required G/L balances, the
first interval starts at the
PurchaseTime
(without the date).
- For weekly, monthly, or yearly periodic balances, the start date of the first interval is determined by the Cycle Offset Type defined in the balance template, either Purchase Time or Fixed Offset.
When a periodic balance interval expires, the next interval in the series is created automatically and is immediately available for use. If configured, balance rollover allows an unused part of an asset balance to be used in the next interval. For more information about balance rollover, see the discussion about balance rollovers.
GrantResumeProrationType
(default = scaled) and
ChargeResumeProrationType
(default = scaled) fields defined for
product offers that have the recurring pricing components. For information about
querying these fields, see the pricing query APIs in MATRIXX Subscriber Management API.
For information about proration, see the discussion about pricing proration. Periodic Balance with Fixed Offset
- Weeks — Number of days into the week, represented numerically:
- Sunday (1)
- Monday (2)
- Tuesday (3)
- Wednesday (4)
- Thursday (5)
- Friday (6)
- Saturday (7)
- Months — Number of days into the month: 1-31Note: If the day of the month is greater than the actual number of days in the month, you can specify when the new period will start by answering the create_config.info question: Global:What policy should be used for determining the end of monthly balance/billing cycles?
After making this change to the
create_config.info
question, apply the configuration change. For more information, see the discussion about applying MATRIXX Engine configuration changes in MATRIXX Installation and Upgrade. - Years — Number of days into the year: 1-365Note: January 1 is 1 and December 31 is 365. For a leap year, the last day of the year is used.
Recurring charges based on balance cycles with fixed offset will be prorated in the first cycle. For example, if a periodic balance has a cycle offset of 1 and an offer with recurring charges based on the balance cycle is purchased on March 15, then the recurring charges for the first cycle, March 1 to April 1, will be prorated.
For more information about configuring a periodic balance with fixed offset, see the discussion about configuring a periodic balance in My MATRIXX Help. For more information about configuring a periodic meter with fixed offset, see the discussion about configuring a periodic meter in My MATRIXX Help.