shopify-admin-cancel-and-restock

Cancel unfulfilled Shopify orders with optional restock, refund, and customer notification.

174|18|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/40RTY-ai/shopify-admin-skills --skill shopify-admin-cancel-and-restock
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shopify-admin-cancel-and-restock
Source: https://github.com/40RTY-ai/shopify-admin-skills/tree/main/skills/fulfillment-ops/shopify-admin-cancel-and-restock
Command: npx skills add https://github.com/40RTY-ai/shopify-admin-skills --skill shopify-admin-cancel-and-restock

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents accidental or unsupported Shopify admin workflows by safely cancelling unfulfilled orders while optionally restoring inventory and issuing refunds and customer notifications.

Core Features & Use Cases

  • Validated order cancel workflow: Queries the order first and aborts if any fulfillment order is already in-progress or closed, reducing irreversible mistakes.
  • Optional operational actions in one pass: Controls restock, refund, and customer notification, plus an internal staff note.
  • Fraud and exception handling support: Enables cancellation with a reason (including FRAUD) for operational and compliance-oriented workflows before dispatch.

Quick Start

Use the shopify-admin-cancel-and-restock skill to cancel order gid://shopify/Order/12345 with reason FRAUD, run a dry run first, then if allowed cancel with restock enabled, refund enabled, and notify the customer.

Frequently Asked Questions about shopify-admin-cancel-and-restock

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I cancel a Shopify order and restock inventory automatically?

To cancel a Shopify order and restock inventory, the workflow queries the order to verify it is unfulfilled or partially unfulfilled, then executes an orderCancel mutation with restock enabled. This prevents accidental cancellation of already fulfilled or closed orders.

Can I process Shopify order cancellations for fraud exceptions before dispatch?

Yes, Shopify order cancellations for fraud exceptions are supported before dispatch. You can assign a FRAUD reason during the cancellation process while simultaneously issuing refunds and notifying the affected customer.

How do I safely run a dry run before cancelling a Shopify order?

To safely run a dry run before cancelling a Shopify order, the mutation gating uses a dry_run parameter to validate fulfillment-order status. This confirms whether the unfulfilled order is in a cancellable state without executing irreversible changes.

Does Shopify order cancellation support issuing refunds and sending customer notifications in one pass?

Yes, Shopify order cancellation supports issuing refunds and sending customer notifications in one pass. The workflow optionally controls inventory restock, refund issuance, customer notification, and internal staff notes simultaneously.

What happens if I try to cancel a Shopify order that is already in-progress or closed?

If you try to cancel a Shopify order that is already in-progress or closed, the pre-check order query detects the fulfillment status and aborts the cancellation. This validation reduces irreversible mistakes by excluding fully fulfilled orders.

When should I use an automated Shopify order cancellation workflow instead of manual cancellation?

An automated Shopify order cancellation workflow should be used for out-of-stock cancellations, pre-dispatch customer-requested cancellations, and fraud operations. It ensures validated order queries and safe mutation execution across multiple optional actions.