Tools Catalog / WooCommerce tools / wc_create_refund

wc_create_refund tool reference for StifLi Flex MCP

Write
Group Orders, notes and refundsCapability edit_shop_orders

creates a refund for an order, with amount, reason, lines, and optional inventory handling.

Description

creates a refund for an order, with amount, reason, lines, and optional inventory handling.

What it is for

  • Managing returns with traceability.

Example use case

partial customer refund.

Sample prompt

Create a partial refund for order ID 5501 for the damaged item and restock the returned quantity.

Sample response

{
  "tool": "wc_create_refund",
  "status": "ok",
  "updated": true
}

What does wc_create_refund do?

creates a refund for an order, with amount, reason, lines, and optional inventory handling.

Does wc_create_refund modify store data?

Yes. It is a write operation and can create, update, or delete data depending on arguments.

Which capability is commonly required?

It usually runs under controls compatible with edit_shop_orders and the active MCP profile.

How should wc_create_refund be used safely?

Enable write confirmations, test in staging first, and keep changelog/rollback enabled.