woo-cancel-and-restock

Installation
SKILL.md

woo-cancel-and-restock

Purpose

Cancel one or many WooCommerce orders and automatically restore the stock quantities for all line items. Useful for fraudulent orders, duplicate orders, or bulk cancellations when a product batch is unavailable. Includes dry-run preview listing all affected orders and stock restores.

Prerequisites

  • WooCommerce store with REST API enabled
  • Consumer Key with Read/Write scope
  • Orders must be in a cancellable state (pending, on-hold, processing)
  • Minimum WooCommerce version: 3.5.0

Parameters

Installs
35
GitHub Stars
8
First Seen
Apr 17, 2026