How to Manage Earning Rules in the Mekari Qontak Loyalty Program

Article author
Learning Center Mekari
  • Updated

The Earning Rules menu in Headless Loyalty allows you to configure the main logic and rules of the loyalty program, such as how points are earned, transaction requirements, and ongoing promotion schemes. 

A. Overview of the Rules Policy Page

No.Feature NameDescription
1Create RuleButton for adding a new rule.
2Rule NameColumn displaying the rule name. 
3StatusColumn displaying the rule status. 
4Last UpdatedColumn displaying the date when the data was last modified.
5ActionsIcon for deleting a rule.
6Row per pageDetermines the number of data rows displayed on one page (for example, 10, 20, 50, or 100 records), allowing you to adjust the display for more convenient data list monitoring.

B. How to Add a New Rule

  1. Sign in to your Mekari Officeless account. Then select the “Configurations” menu.

  2. Select the “Earning Rules” submenu.

  3. You will be directed to the Rules Policy page. On this page, click “Create data”.

  4. Complete each available field. The following is an explanation of each section and form field.

    1. Rules Configuration

No.Feature NameDescription
1Rule NameField for assigning a name to the loyalty rule. The name must use uppercase letters, numbers, or an underscore. If you enter spaces, the system will automatically convert them to underscores.
2Triggering Activity

Field for determining the customer's main activity that will trigger this rule. This data is displayed based on the data in the ‘Configuration - Rule Trigger’ menu.

3Activate RuleToggle button for activating or deactivating the created rule. If active, the system will begin processing the rule based on the configuration in real time.
  1. Metadata Configuration

No.Feature NameDescription
1Preview API Body

Button for accessing the configured data structure draft (JSON), to ensure that the data format is correct before it is implemented in the API.

2Config Metadata to Variable

Feature for mapping the created metadata to system variables so that the data can be used in loyalty rule calculations.

3Add PropertyButton for adding a new metadata attribute row if you want to include more data parameters in one configuration.
4Property NameField for specifying the name of the custom data attribute to use from the API (for example: items, event, or location).
5Data Type

Option for specifying the data format of the property, such as String (text), Number, or another format so that the system can process the data correctly.

If the selected data type is Array Of Object, the system will display the Aggregations field. This is used to process or simplify a collection of numeric data (array). 

  • Average: Calculates the average value of all items. 

  • Min (Minimum): Takes the smallest value from the sequence of data. 

  • Max (Maximum): Takes the largest value from the sequence of data.

  • Sum (Total): Adds all the numbers together. 

6Button used to delete an added property.
  1. Conditions

No.Feature NameDescription
1Logic Operator (AND/OR)

Button for determining the relationship between conditions: 

  • AND means that all requirements must be met.

  • OR means that only one requirement needs to be met.

2ConditionButton used to add a new condition criteria row.
3GroupButton used to create a more complex logical grouping (subcondition).
4Variable

Button for selecting the parameter or data to be processed.

5Operator

Comparison symbol for determining the variable to compare with a particular value.

6ValueField for entering the reference value that serves as the comparison target in a condition.
7Show Preview

Button for previewing a summary of the logic that has been created in an easy-to-read sentence and JSON format, to ensure that the criteria are correct before saving.

  • Human Readable

  • JSON

  1. Rules Action

No.Feature NameDescription
1Add Rules ActionButton for adding a new rule that the system will run when the requirements (conditions) have been met.
2Action KeyField for specifying the type of action to be provided, such as points, bonuses, or other loyalty attributes.
3CurrencySelection menu for specifying the type of currency or point unit used in the action.
4Value Formula

Feature for creating a dynamic reward value calculation formula by combining Variable, Operator, and Number.

  • Variable

Button for entering dynamic data from the system or transaction as the basis for the calculation.

  • Operator

Button for adding a mathematical symbol.

  • Number

Button for entering a fixed (static) numeric value into the formula.

  1. When all the data has been entered, click “Create Rule”.

  2. The system displays a pop-up indicating that the rule was successfully added. 

  3. The created rule will then be displayed in the following Rules Policy table.

     

How to Edit, Delete, and Deactivate Rule Data

  1. To edit a rule, click one of the added rule records.

  1. You will then be directed to the Edit Rule section. Edit the data on the following page. Make sure the entered data is correct. There are 4 (four) sections that can be edited:

    1. Rules Configuration

No.Feature NameDescription
1Rule NameField for assigning a name to the loyalty rule. The name must use uppercase letters, numbers, or an underscore. If you enter spaces, the system will automatically convert them to underscores.
2Triggering Activity

Field for determining the customer's main activity that will trigger this rule. This data is displayed based on the data in the ‘Configuration - Rule Trigger’ menu.

3Activate RuleToggle button for activating or deactivating the created rule. If active, the system will begin processing the rule based on the configuration in real time.



 

  1. Metadata Configuration

No.Feature NameDescription
1Preview API Body

Button for accessing the configured data structure draft (JSON), to ensure that the data format is correct before it is implemented in the API.

2Config Metadata to Variable

Feature for mapping the created metadata to system variables so that the data can be used in loyalty rule calculations.

3Add PropertyButton for adding a new metadata attribute row if you want to include more data parameters in one configuration.
4Property NameField for specifying the name of the custom data attribute to use from the API (for example: items, event, or location).
5Data Type

Option for specifying the data format of the property, such as String (text), Number, or another format so that the system can process the data correctly.

6Button used to delete an added property.



 

  1. Conditions

No.Feature NameDescription
1Logic Operator (AND/OR)

Button for determining the relationship between conditions: 

  • AND means that all requirements must be met.

  • OR means that only one requirement needs to be met.

2ConditionButton used to add a new condition criteria row.
3GroupButton used to create a more complex logical grouping (subcondition).
4Variable

Button for selecting the parameter or data to be checked (for example: SKU, transaction total, or time).

5Operator

Comparison symbol for determining the variable to compare with a particular value.

6ValueField for entering the reference value that serves as the comparison target in a condition.
7Show Preview

Button for previewing a summary of the logic that has been created in an easy-to-read sentence and JSON format, to ensure that the criteria are correct before saving.

  • Human Readable

  • JSON

  1. Rules Action

 

No.Feature NameDescription
1Add Rules ActionButton for adding a new rule that the system will run when the requirements (conditions) have been met.
2Action KeyField for specifying the type of action to be provided, such as points, bonuses, or other loyalty attributes.
3CurrencySelection menu for specifying the type of currency or point unit used in the action.
4Value Formula

Feature for creating a dynamic reward value calculation formula by combining Variable, Operator, and Number.

  • Variable

Button for entering dynamic data from the system or transaction as the basis for the calculation.

  • Operator

Button for adding a mathematical symbol.

  • Number

Button for entering a fixed (static) numeric value into the formula.

  1. When all the data has been entered correctly, click “Update Rule”.

  2. The system will display the following notification pop-up, indicating that the changes were successfully saved. 

  3. To delete the rule data, click the ‘’ icon on one of the added rule records.

  4. The system will display a data deletion confirmation pop-up.

  5. The system will display the following notification pop-up, indicating that the data was successfully deleted. Click the “OK” button to close the pop-up.

  6. To deactivate the rule data, click one of the added rule records with the Active status.

  7. You will then be directed to the Edit Rule section. In the “Rule Configuration” section, click the “Activate Rule” toggle.

  8. Then click the “Update Rule” button to save the changes.

  9. The system will display the following notification pop-up, indicating that the changes were successfully saved.

  10. The deactivated rule will then be displayed in the Rules Policy table with the Inactive status.