delete_promo_code
Permanently delete a promo code and its redemption history. Provide store, rule, and code IDs to remove a coupon code irreversibly.
Instructions
Permanently delete a promo code. Past redemption history is lost. Irreversible.
Use update_promo_code with enabled=false to disable a code while preserving its redemption stats. Use delete_promo_rule to remove the rule and all its codes at once.
Authenticated via API key. Max 10 concurrent requests. Respects read-only and dry-run modes. Returns 404 if any of store_id, promo_rule_id, or promo_code_id is invalid.
Args: store_id: E-commerce store ID. promo_rule_id: Rule ID the code is attached to. promo_code_id: Code ID to delete.
Returns: JSON with status ('deleted'), store_id, promo_rule_id, promo_code_id on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store_id | Yes | ||
| promo_rule_id | Yes | ||
| promo_code_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |