1. Can't Run Policy API return variable values? Just only return True/False?
The run policy API can only return True/False. We cannot return exact values as per current regulatory guidelines.
2. Is there an interface that can directly return the value of the credit variable?
The exact value of the credit variables cannot be returned as per current regulatory guidelines.
3. What is the use of the part of the interface key value "variables"?
Variable input allows you to send your own custom variables which are not derived from the credit report to be used in the policy. For example, you may have a policy that score should be > 700 if the customer is applying for a loan for the second time, while score should be > 750 if it is the first application. You can pass the value of this application number into our policy checker and use that in your policy.
4. Variables that use “ADD” also return true/false, such as ['ADD','credit_score', 10]. What does it mean to return true/false?
These can be used as sub-expressions. For example, you can do something like below:
[GT, [‘Add’, ‘credit_score’, 10], 750]
So, you can do arithmetic operations and then use the output of those operations for calculating boolean values.
5. "Num_cc_current_dpd_gte_30" :"Note that 30 can be replaced by any number you want."
How to modify the parameter of "30"?
Instead of using the variable ‘num_cc_current_dpd_gte_30’ you can also use any other number in place of 30, for example, you can also pass ‘num_cc_current_dpd_gte_60’ and it will work as expected.
6. "You can also pass your own variable if your policy requires them" What does "own variable" mean? Where to add? Or access?
This is using a variable parameter.
7. A Run Policy API request can add multiple variable nodes, right? Is there a limit to the number of additions required?
You can do any number of variables and operations.
8. Could you provide more interface instances about the Run Policy API so that we can have a better understanding of how to use it?
Check out https://demo.onefin.in/api/quant/playground/ for an understanding of how the JSON operator works.