hermosodocs

refund_shopify_order

Refund a Shopify order destructive

Area: SHOPIFY: the merchant's own storefront · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool reference.

Description

Refund a Shopify order to its original payments: full:true (everything still refundable, plus shipping), or lineItems [{ lineItemId, quantity, restock }], shipping { full:true } or { amount }, and/or amount (a sum of money, e.g. a goodwill refund). Every amount is in the currency the buyer paid (pass currency to have a mismatch refused). Without confirm:true Shopify computes the refund and NOTHING is refunded: show the user the amount and where it goes, get a yes, then call again with confirm:true and confirmAmount set to that exact amount. notify emails the buyer. Retrying the same confirmed refund never refunds twice. Free.

Parameters

ParameterTypeDescription
idrequiredstringthe order number (#1001) or gid
fullboolean
lineItemsobject[]
lineItems[].lineItemIdrequiredstring
lineItems[].quantitynumber
lineItems[].restockboolean
shippingobject
shipping.fullboolean
shipping.amountstring
amountstringrefund this much money instead of what the lines and shipping are worth, e.g. "10.00"
restockbooleanrestock every refunded line (default false)
currencystring
notestring
notifyboolean
confirmboolean
confirmAmountstringthe amount the preview showed

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/refund_shopify_order.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"refund_shopify_order","arguments":{"id":"<string>"}}}

CLI

hermoso call refund_shopify_order --json '{"id":"<string>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 728 Publishing & scheduling tools · tools.json