Service Design

Service design entails all the essential components that can be configured in Monetization to recognize usage events, extract the parameters, determine unit conversion, and ultimately determine the quantity to be rated.

Topics in this document:

To access this section in Monetization, from the Menu, select Business configuration, and click Service design.

Service fields

To access this section, click Service fields. A paginated list of all service fields is shown in a tabular format.

A service field is a parameter that can be part of a service type. The parameter will hold information about one session/event in Monetization.

Service fields example

Assume a telecommunication company that enables customers to make phone calls. The service fields can include the following:

  • start_time
  • origin
  • destination
  • duration
  • direction
  • quantity

Reserved fields

The session identifier and identifier are reserved fields that must exist as part of the service fields. They are created automatically when a site is created in Monetization.

The identifier will represent the service identifier of one customer—for instance, a mobile phone number for data or voice service. The identifier must be unique for each site; it could be an integer number, a device, or anything that can be used to identify a customer uniquely.

The session identifier should be included in each usage event. This ensures that the same event will only be rated once and cannot be duplicated.


Four actions/subpages can be performed/viewed under this section, namely:

Create a service field

Under service fields, to create a service field, click Create new. Provide a name and code. Optionally, add a description.

Details service field page

Under service fields, to see the full details of a service field, click Details. It contains the following:

  • Name
  • Code
  • Description

Update service field

Under service fields, to update a service field, first, click Details; it shows the details of the service field. Then to update, click Update.

Delete a service field

Under service fields, to delete a service field, click Delete.

Service types

To access this section, click Service types. A paginated list of all service types is shown in a tabular format.

A service type describes one service in Monetization—for instance, a voice or data service. It determines which service fields are meant to be part of one session/event for that particular service.

In addition, a service type defines a service by depicting the optional or mandatory service fields and rating set fields Monetization needs in usage events for a specific service.


Four actions/subpages can be performed/viewed under this section, namely:

Create service type

Under service types, to create a service type, click Create new.

The mandatory input fields include the following:

  • name
  • code
  • mandatory service field(s)
  • authorization strategy

The optional input fields include the following:

  • description
  • optional service field(s)
  • rating set fields
  • Included on invoice
  • Impact balances

To include the service details on the invoice, use the Included on invoice toggle switch to enable/disable. Enabling this feature means that Monetization will pull this data on the JSON object generated for one invoice.

If Impact balances toggle switch is enabled then this service will be impacting, reserving, and working with balances in real-time. In case this is not necessary, turning this off will increase rating performance.

Rating set fields

A rating set field is a field that, instead of being matched as raw strings, is compared against a rating sets object, which can have multiple matches. It is helpful for prefix matching.

Rating set field example

The Slovenia rating sets in the telecommunication industry can have multiple matches: 003865, 003867, 003864, etc., representing telephone number prefixes. If an origin service field is defined as a rating set field on a service type, the field’s contents will be compared to all prefixes in Slovenia when Monetization tries to find a match. Therefore, if the origin is 003865123123, the Slovenia rating set will be matched.

Details service type page

Under service types, to see the full details of a service type, click Details. It contains the following:

  • Name
  • Code
  • Description
  • Mandatory fields
  • Optional fields
  • Rating set fields
  • Authorization strategy
  • Included on invoice
  • Impact balances

Update service type

Under service types, to update a service type, first, click Details; it shows the details of the service type. Then to update, click Update.

Delete service type

Under service types, to delete a service type, click Delete.

Unit groups

To access this section, click Unit groups. A paginated list of all unit groups is shown in a tabular format.

A unit group is designed to create related units in Monetization. A conversion factor must also be provided to enable Monetization to make conversions between the units automatically.

Example of a unit group

Assume a telecommunication company provides data service to customers. After configuring the units in kilobytes (kB), megabytes (MB), and gigabytes (GB), the usage event can have input in kB; at the same time, pricing can work in MB.


Four actions/subpages can be performed/viewed under this section, namely:

Create unit group

Under unit groups, to create a unit group, click Create new. Provide a name and code. Optionally, provide a description and some units.

To add a unit, under Units, click Add unit. Provide a name, symbol, and factor. To make a particular unit the base unit, check the checkbox Base unit.

For example, assume the following units in a unit group:

NameSymbolFactorBase unit
kilobytekB1
megabyeMB1024
gigabyteGB1048576

To delete a unit, under Units, click Delete

Details unit group page

Under unit groups, to see the full details of a unit group, click Details. It contains the following:

  • Name
  • Code
  • Description
  • Units - The units are shown in a tabular format.

Update unit group

Under unit groups, to update a unit group, first, click Details; it shows the details of the unit group. Then to update, click Update.

Delete unit group

Under unit groups, to delete a unit group, click Delete.

Rating metrics

To access this section, click Rating metrics. A paginated list of all rating metrics is shown in a tabular format.

Monetization uses a rating metric to determine the quantity to be rated based on the service field(s) from the session/event. In other words, a rating metric enables Monetization to know how to get the ratable quantity out of an event.


Four actions/subpages can be performed/viewed under this section, namely:

Create rating metric

Under rating metrics, to create a rating metric, click Create new. Provide a name and code. Optionally, provide a description and a metric expression(s).

To add a metric expression, under Metric expressions, click Add metric expression. Provide a priority, expression, and unit. The unit is configured under unit groups. For more information, see Unit groups.

For example, assume a quantity service field is inserted as the rating metric expression; Monetization will get the ratable quantity from the quantity service field.

Basic math expressions like addition, subtraction, and multiplication can be performed in a metric expression to determine the ratable quantity. For example, assume an end_timeand start_time service field; from that, a rating metric expression of the form end_time - start_time can be created.

Details rating metric page

Under rating metrics, to see the full details of a rating metric, click Details. It contains the following:

  • Name
  • Code
  • Description
  • Metric expressions - The metric expressions are shown in a tabular format.

Update rating metric

Under rating metrics, to update a rating metric, first, click Details; it shows the details of the rating metric. Then to update, click Update.

Delete rating metric

Under rating metrics, to delete a rating metric, click Delete.

Charge intervals

To access this section, click Charge intervals. A paginated list of all charge intervals is shown in a tabular format.

A charge interval describes how Monetization will round the ratable quantity from the rating metric. After the rating metric calculates the raw quantity-to-be-rated, the charge interval can round up or down based on the configurations.


Four actions/subpages can be performed/viewed under this section, namely:

Create charge interval

Under charge intervals, to create a charge interval, click Create new. Provide a name and code. Optionally, provide a description, minimum step, step, rounding mode, and unit.

The minimum step represents the smallest quantity that can be rated. Therefore, if Monetization receives an event below that, it will be rounded to the minimum step. For instance, assume a minimum step configuration of zero, and Monetization receives an event below zero; the event will be rounded to zero.

The step represents how the ratable quantity should increment. For example, Monetization receives an event and figures out the ratable quantity to be 550 through the rating metric; if the step is configured to be 100, Monetization will round the quantity up or down depending on the configuration of the rounding mode.

If the rounding mode is configured to Up, the new ratable quantity will be 600, while if the rounding mode is configured to Down, the new ratable amount will be 500.

Details charge interval page

Under charge intervals, to see the full details of a charge interval, click Details. It contains the following:

  • Name
  • Code
  • Description
  • Min step
  • Step
  • Rounding mode
  • Unit

Update charge interval

Under charge intervals, to update the charge interval, first, click Details; it shows the details of the charge interval. Then to update, click Update.

Delete charge interval

Under charge intervals, to delete a charge interval, click Delete.