update_promo_rule
Update an existing promo rule to adjust discount amount, toggle enabled status, or change dates and other fields.
Instructions
Update an existing promo rule. Only provided fields are changed.
Useful to toggle a rule on/off (enabled), extend an end date, or adjust the discount amount mid-campaign. Use list_promo_rules to discover promo_rule_ids.
Returns 404 if store_id or promo_rule_id is invalid.
Args: store_id: E-commerce store ID. promo_rule_id: Existing rule ID. description: New internal description. amount: New discount amount. type: New type ('fixed' or 'percentage'). target: New target ('per_item', 'total', or 'shipping'). enabled: Toggle the rule on/off. title: New public title. starts_at: New start datetime (ISO 8601). ends_at: New end datetime (ISO 8601).
Returns: JSON with id, title, description, amount, type, target, enabled, updated_at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| title | No | ||
| amount | No | ||
| target | No | ||
| account | No | ||
| enabled | No | ||
| ends_at | No | ||
| store_id | Yes | ||
| starts_at | No | ||
| description | No | ||
| promo_rule_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |