delete_promo_rule
Delete a promo rule and all its associated promo codes to permanently stop checkout promotions. Irreversible; disable instead with update_promo_rule.
Instructions
Permanently delete a promo rule and all its associated promo codes. Irreversible.
Side effect: every promo code attached to this rule is also deleted and stops working at checkout. Use update_promo_rule with enabled=false to disable a rule without deleting its codes.
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: Rule ID to delete.
Returns: JSON with status ('deleted'), store_id, promo_rule_id on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store_id | Yes | ||
| promo_rule_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |