rule_type
path parameter:rule_type
is rules
, the promotion's rules are retrivied. - If rule_type
is target-rules
, the target rules of the promotion's application method are retrieved.rule_type
is buy-rules
, the buy rules of the promotion's application method are retrieved.curl --location -g --request GET '{{BASE_URL}}/admin/promotions//'
{
"rules": [
{
"id": "string",
"description": "string",
"attribute": "customer_group_id",
"operator": "gt",
"values": [
"cusgroup_123"
]
}
]
}
+
it will be added to the default fields, using -
will remove it from the default fields. without prefix it will replace the entire default fields.