Retrieve Rules

curl -X GET -H "Content-Type: application/json" \
-u"[your token]:" \
"https://ac.cnstrc.com/refined_strategies?key=[your index key]&section=[section]&strategy_name=complementary_items"
info

The above command returns a 204 Success response on success.

HTTP Requests#

GET https://ac.cnstrc.com/refined_strategies?key=[your index key]&section=[section]&strategy_name=[strategy_name]

Response format#

{
"refined_strategies": [
{
"condition": {
"strategy_name": "complementary_items",
"item_id": "fiddos_treat_1"
},
"id": 10111,
"allow_automatic_rules": false,
"blacklist_rules": [
{
"active": true,
"automatically_generated": false,
"created_at": "2020-04-07T13:45:42",
"rule": { "item_ids": ["fiddos_toy_1"] },
"rule_type": "BLACKLIST",
"updated_at": null
}
],
"slot_rules": [
{
"active": true,
"automatically_generated": false,
"created_at": "2020-04-07T13:45:42",
"rule": { "item_id": "fiddos_food_item", "position": 1 },
"rule_type": "SLOT",
"updated_at": null
}
]
}
],
"total_count": 1
}

Query Parameters#

ParameterRequired?Description
keyYesThe index you'd like to to retrieve results from.
sectionYesThe index section you'd like to retrieve results from (typically Products).
num_results_per_pageNoThe number of rules to return. Defaults to 100.
pageNoThe page of results to return. Defaults to 1.
strategy_nameYesThe name of the strategy you'd like to retrieve searchandizing rules for.