refund_shopify_order
Refund a Shopify order destructive
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
| Parameter | Type | Description |
|---|---|---|
idrequired | string | the order number (#1001) or gid |
full | boolean | |
lineItems | object[] | |
lineItems[].lineItemIdrequired | string | |
lineItems[].quantity | number | |
lineItems[].restock | boolean | |
shipping | object | |
shipping.full | boolean | |
shipping.amount | string | |
amount | string | refund this much money instead of what the lines and shipping are worth, e.g. "10.00" |
restock | boolean | restock every refunded line (default false) |
currency | string | |
note | string | |
notify | boolean | |
confirm | boolean | |
confirmAmount | string | the 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.
Related tools
cancel_shopify_orderCancel a Shopify orderlist_shopify_locationsList Shopify locationsfulfill_shopify_orderFulfil a Shopify orderget_shopify_inventoryGet Shopify stockedit_shopify_order_itemsEdit the items on a Shopify orderset_shopify_inventorySet or adjust Shopify stockupdate_shopify_orderUpdate a Shopify ordermanage_shopify_draft_ordersShopify draft ordersimport_shopify_buyers_to_email_leadsAdd past Shopify buyers to the email leadsmanage_shopify_collectionsShopify collections