find_outdated_products
Scan your catalog to flag outdated products: QC-rejected, zero-stock, or stale ACTIVE listings. Review and deactivate them.
Instructions
Scan the catalog for products that look outdated: QC-rejected and never fixed, ACTIVE with zero stock for a long time, or ACTIVE and untouched for a very long time. This is a HEURISTIC - the Vendor Center API has no "outdated" concept - so treat the result as a review list, not an automatic deletion queue. Nothing is changed by calling this; pair it with deactivate_products() after a human (or you, deliberately) has looked at the list.
Returns {scanned, flagged: [{listing, reasons}], truncated}. Each listing is a flattened (variation, businessClient) row that already carries variation_id (== productSid), seller_sku and business_client_code - i.e. exactly what deactivate_products needs, with no extra lookup required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | ACTIVE | |
| shop_id | No | ||
| qc_status | No | ||
| category_code | No | ||
| max_products_scanned | No | ||
| zero_stock_grace_days | No | ||
| qc_rejected_grace_days | No | ||
| stale_active_grace_days | No |