update_promo_rule
Update an existing promo rule to toggle it on/off, extend the end date, or adjust the discount amount. Only provided fields are changed.
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.
Authenticated via API key. Max 10 concurrent requests. Respects read-only and dry-run modes. 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 |
|---|---|---|---|
| store_id | Yes | ||
| promo_rule_id | Yes | ||
| description | No | ||
| amount | No | ||
| type | No | ||
| target | No | ||
| enabled | No | ||
| title | No | ||
| starts_at | No | ||
| ends_at | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |