ReDoc documentation
Retrieve a catalog price rule by ID.
200 Success.
401 Unauthorized
Internal Server error
Unexpected error
{- "condition": {
- "aggregator": "string",
- "conditions": [
- {
- "aggregator": "string",
- "attribute_code": "string",
- "conditions": [
- { }
], - "match": true,
- "operator": "string",
- "value": "string"
}
], - "match": true
}, - "customer_group_ids": [
- 0
], - "description": "string",
- "discount_amount": 0,
- "from_date": "string",
- "is_active": 0,
- "name": "string",
- "rule_id": 0,
- "simple_action": "string",
- "sort_order": 0,
- "stop_rules_processing": 0,
- "to_date": "string",
- "website_ids": [
- 0
]
}Update an existing catalog price rule (only provided fields are applied).
required | object (catalog-price-rule-api-data-catalog-price-rule-interface) Data interface for a catalog price rule exposed over REST. This is a constrained view of the underlying rule: it adds the scoping and date fields the vendor @api RuleInterface omits, and exposes the condition tree as typed, server-validated leaves and nested groups instead of raw arrays. |
200 Success.
401 Unauthorized
Internal Server error
Unexpected error
{- "rule": {
- "condition": {
- "aggregator": "string",
- "conditions": [
- {
- "aggregator": "string",
- "attribute_code": "string",
- "conditions": [
- { }
], - "match": true,
- "operator": "string",
- "value": "string"
}
], - "match": true
}, - "customer_group_ids": [
- 0
], - "description": "string",
- "discount_amount": 0,
- "from_date": "string",
- "is_active": 0,
- "name": "string",
- "rule_id": 0,
- "simple_action": "string",
- "sort_order": 0,
- "stop_rules_processing": 0,
- "to_date": "string",
- "website_ids": [
- 0
]
}
}{- "condition": {
- "aggregator": "string",
- "conditions": [
- {
- "aggregator": "string",
- "attribute_code": "string",
- "conditions": [
- { }
], - "match": true,
- "operator": "string",
- "value": "string"
}
], - "match": true
}, - "customer_group_ids": [
- 0
], - "description": "string",
- "discount_amount": 0,
- "from_date": "string",
- "is_active": 0,
- "name": "string",
- "rule_id": 0,
- "simple_action": "string",
- "sort_order": 0,
- "stop_rules_processing": 0,
- "to_date": "string",
- "website_ids": [
- 0
]
}