shopify-admin-cancel-and-restock

Installation
SKILL.md

Purpose

Cancels an unfulfilled or partially-unfulfilled order with configurable restock, refund, and customer notification options — without navigating the Shopify admin. Useful for fraud exception handling, out-of-stock cancellations, or customer-requested cancellations before dispatch. Cannot cancel orders that are already fully fulfilled.

Prerequisites

  • Authenticated Shopify CLI session: shopify auth login --store <domain>
  • API scopes: read_orders, write_orders

Parameters

Parameter Type Required Default Description
store string yes Store domain (e.g., mystore.myshopify.com)
format string no human Output format: human or json
dry_run bool no false Preview operations without executing mutations
order_id string yes GID of the order (e.g., gid://shopify/Order/12345)
reason string no OTHER Cancel reason: CUSTOMER, DECLINED, FRAUD, INVENTORY, STAFF, OTHER
restock bool no true Restock inventory for cancelled line items
refund bool no true Issue refund for any captured payments
notify_customer bool no true Send cancellation email to customer
Related skills
Installs
5
GitHub Stars
139
First Seen
Apr 12, 2026