Create a Lead Scoring Rule
Description
You can use this API to create a lead scoring rule.
OAuth Scope:
SalesIQ.leadscorerules.CREATE
Requested Payload:
- points: The unit you offer to the visitors upon matching the lead scoring rule. You can add (+) or less(-) points to the visitors based on the criterion of the rule.
- AND_criteria: To add an additional condition and criteria to the lead scoring rule. You can specify a group of OR_criteria within the AND_criteria.
- OR_criteria : Specifies a set of criteria containing the comparator, values and fieldname ie., you can provide more than one criteria and the rule will execute if the visitor matches any of the given criteria.
- field_name : Fields that you set to filter the visitor who matches the rule.
- sub_fields: The sub field that you set to filter the visitor who matches the rule.
- comparator : The comparator strings for that specific rule you have set is used to match the values (eg: Contains, Equals to, etc.)
- values : The values that you have defined for each field that the visitor should obtain to match the rule.
- integ_name : The name of the integration.
You can use the Field name, Comparator and values to populate the criteria of the lead scoring rule. You can also find the data type of these keys in the criteria of the fields section.
URL
Copiedhttps://{[zohosalesiq_server_uri](https://www.zoho.com/salesiq/help/developer-section/rest-api-v2.html)}/api/v2/{screenname}/leadscorerules
Example:
Copiedhttps://salesiq.zoho.com/api/v2/zylker/leadscorerules
Success Response:
Copied{
"url": "/api/v2/zylker/leadscorerules",
"object": "leadscore_rule",
"data": {
"status": "enabled",
"points": "56",
"creator": {
"id": "43000000000005"
},
"AND_criteria": [
{
"OR_criteria": [
{
"comparator": "is_equal_to",
"values": [
"apple_safari"
],
"field_name": "browser"
},
{
"comparator": "is_equal_to",
"sub_field": "No of Open Deals",
"values": [
"12"
],
"field_name": "crm_deal",
"integ_name": "zohocrm"
}
]
}
],
"id": "43000000010001"
}
}