ReDoc documentation
Retrieve sales rules that match te specified criteria. This call returns an array of objects, but detailed information about each object’s attributes might not be included. See https://developer.adobe.com/commerce/webapi/rest/attributes#RuleRepositoryInterface to determine which call to use to get detailed information about all attributes for an object.
200 Success.
401 Unauthorized
Internal Server error
Unexpected error
{- "items": [
- {
- "action_condition": {
- "aggregator_type": "string",
- "attribute_name": "string",
- "condition_type": "string",
- "conditions": [
- { }
], - "extension_attributes": { },
- "operator": "string",
- "value": "string"
}, - "apply_to_shipping": true,
- "condition": {
- "aggregator_type": "string",
- "attribute_name": "string",
- "condition_type": "string",
- "conditions": [
- { }
], - "extension_attributes": { },
- "operator": "string",
- "value": "string"
}, - "coupon_type": "string",
- "customer_group_ids": [
- 0
], - "description": "string",
- "discount_amount": 0,
- "discount_qty": 0,
- "discount_step": 0,
- "extension_attributes": {
- "reward_points_delta": 0
}, - "from_date": "string",
- "is_active": true,
- "is_advanced": true,
- "is_rss": true,
- "name": "string",
- "product_ids": [
- 0
], - "rule_id": 0,
- "simple_action": "string",
- "simple_free_shipping": "string",
- "sort_order": 0,
- "stop_rules_processing": true,
- "store_labels": [
- {
- "extension_attributes": { },
- "store_id": 0,
- "store_label": "string"
}
], - "times_used": 0,
- "to_date": "string",
- "use_auto_generation": true,
- "uses_per_coupon": 0,
- "uses_per_customer": 0,
- "website_ids": [
- 0
]
}
], - "search_criteria": {
- "current_page": 0,
- "filter_groups": [
- {
- "filters": [
- {
- "condition_type": "string",
- "field": "string",
- "value": "string"
}
]
}
], - "page_size": 0,
- "sort_orders": [
- {
- "direction": "string",
- "field": "string"
}
]
}, - "total_count": 0
}