shopify-admin-refund-and-reorder

Process Shopify order refunds and create replacement draft orders via GraphQL mutations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the manual back-and-forth of processing refunds and then re-ordering items for a customer, reducing errors and time spent in the Shopify admin UI.

Core Features & Use Cases

  • Order eligibility check: Queries the order to confirm refundability using refundable quantities and financial/transaction context before attempting mutations.
  • Full or partial refund processing: Creates a refund for either all refundable quantities or a explicitly provided subset of line items.
  • Optional replacement draft order: Generates a draft order with the same line items for faster customer re-purchase flow, including an invoice URL for follow-up.
  • Dry-run safety: Supports previewing mutations via dry_run to validate the intended refund line items before committing irreversible actions.

Quick Start

Run the skill with order_id, refund_line_items (if you want a partial refund), and create_replacement set to true to refund the customer and generate a replacement draft order.

Frequently Asked Questions about shopify-admin-refund-and-reorder

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

FAQPage Schema
How do I process a Shopify refund and create a replacement draft order at the same time?

You can process a Shopify refund and create a replacement draft order simultaneously by querying order eligibility, validating refundable quantities, executing the refundCreate mutation, and optionally triggering a draftOrderCreate mutation to carry over line items and shipping details.

Can I issue a partial refund for specific line items in Shopify using GraphQL?

Yes, you can issue a partial refund in Shopify by explicitly providing a subset of refundable line items. The workflow queries the order to validate refundable quantities and financial context before applying the refundCreate mutation only to those specific items.

How can I test Shopify GraphQL refund mutations without executing irreversible financial changes?

You can test Shopify refund mutations safely by running the process in dry_run mode. This previews the intended refund line items and validates the mutation payload against the order data without committing irreversible financial transactions.

Does the Shopify refund and reorder workflow check order eligibility before processing?

Yes, the workflow queries the Shopify order to confirm refundability by checking refundable quantities and transaction context before attempting any mutations, ensuring only valid items are refunded.

What's the best way to automate customer re-purchase flows after a Shopify refund?

Automate Shopify customer re-purchase flows by generating a replacement draft order after refunding. This draft order carries over the original line items and customer details, providing an invoice URL for seamless follow-up and repurchase.

Can I carry over shipping details and customer information to a Shopify replacement draft order?

Yes, when creating a replacement draft order in Shopify, the workflow automatically carries over appropriate line items, customer information, and shipping details from the refunded order to ensure accurate re-purchase processing.