Pricing Rules
The Pricing Rules page allows for complex pricing rules to be written in a low-code environment. This is generally only necessary for rare or complex pricing scenarios.
Pricing Rules
After clicking on the Pricing Rules Link, the Pricing Rules dashboard appears (Figure 1).
Test a Pricing Rule Script
To test a Pricing Rule Script, either choose an existing rule and click on its edit button or create a new rule (Figure 2).
Navigate to the "Script" step of the form. Here there are two tabs, both of which contain a text editor.
The Script step is where you will enter the script for the rule using the Revenium Scripting Language. This editor has certain auto-completion options to assist in writing the script.
The Test Data step contains the JSON object that the script will be run against. Make any desired modifications to this data or leave it as default (Figure 4)
Click on the "Test Rule" button. The script will then be run against the test data and you will receive either a "Success" response or an "Error" response just below the button (Figure 5).
Please contact the Revenium customer success team for any help required when building your own custom pricing rules.
Last updated