Genesis GuideE-commerce · AI
ENPL
GuideResourcesdawidgac.com
Store Management
Zmienia dane w sklepie — wymagany dry_run

Discount Hygiene Cleanup

Find and remove expired or unused discount codes from your store.

BeginnerAPI 2025-01

Command

bash
shopify-admin-skills:discount-hygiene-cleanup store=your-store.myshopify.com
### name Discount Hygiene Cleanup — Remove Expired and Zero-Use Codes ### oneLiner Detects expired codes, zero-redemption codes, and duplicates — and optionally deletes them permanently. ### whenToUse - Quarterly after campaign season so the discount panel isn't cluttered with hundreds of dead codes. - Before launching a new campaign — clear old codes with similar names to avoid confusion in reports. - When discount reports look inflated by codes with `asyncUsageCount: 0`. ### howToRun ``` Run skill: shopify-admin-discount-hygiene-cleanup Store: yourstore.myshopify.com flag_expired: true flag_zero_usage: true zero_usage_min_age_days: 30 dry_run: true ``` ### whatYouGet CSV file `discount_cleanup_YYYY-MM-DD.csv` with columns: `discount_id`, `title`, `status`, `created_at`, `ends_at`, `usage_count`, `usage_limit`, `flag_reason`, `action`. Summary: discounts scanned, flagged as expired, flagged as zero-use, and total deleted. With `dry_run: true` the list shows what would be removed without executing the mutation. Keep `zero_usage_min_age_days` at 30+ to avoid deleting codes from recently launched campaigns. ### polishContext ### safetyNote This skill executes the `discountCodeDelete` mutation, which permanently removes discount codes. Deleted codes cannot be recovered — customers who received them will find them invalid. Before running without `dry_run`, check with your email marketing team that none of the flagged codes are in a scheduled campaign that hasn't launched yet.

Bazuje na open-source 40RTY-ai/shopify-admin-skills (MIT), rozszerzone o kontekst polskiego rynku przez Dawida Gaca.

Dawid Gac
WebsiteGuideResources
Genesis Guide by Dawid Gac© 2026 Dawid Gac