Auto-Disable Unsold Magento 2 Products After 1 Year w/ Gmail Approval

Automatically detects Magento 2 products unsold for 12 months, emails a report for Gmail approval, and disables approved ones to optimize inventory.

n8n
Auto-Disable Unsold Magento 2 Products After 1 Year w/ Gmail Approval

This n8n workflow runs monthly on the 1st at 8 AM to maintain a clean Magento 2 catalog by identifying products with zero sales in the past year. It calculates the cutoff date, fetches recent orders via REST API to extract sold SKUs, retrieves the full product catalog, and compares to flag unsold items. An HTML report with SKU, name, price, and status is generated and sent to the merchant (e.g., via Gmail) for interactive approval (Approve/Decline).

Upon approval, it batches and updates each unsold product's status to disabled (status=1) using Magento's REST API. A confirmation email summarizes changes with a product table. Fail-safes like conditional checks prevent actions if no orders exist, ensuring safe operations. Handles large catalogs with aggregation and batching for scalability.

Ideal for e-commerce merchants to automate inventory cleanup, reduce clutter, improve SEO by focusing active products, and save manual review time. Customizable for intervals or thresholds, it boosts efficiency for small to enterprise stores managing inactive stock.

$24.99
Last updated October 3, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related E-commerce workflows

More from Viktor Guerrero

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.