# Hermoso: refund_shopify_order · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/refund_shopify_order/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / refund_shopify_order

# `refund_shopify_order`

Refund a Shopify order destructive

Area: SHOPIFY: the merchant's own storefront · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

Parameter Type Description

`id` required `string` the order number (#1001) or gid

`full` `boolean`

`lineItems` `object[]`

`lineItems[].lineItemId` required `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](https://hermoso.ai/docs/credits/).

## Related tools

- [cancel_shopify_order](https://hermoso.ai/docs/reference/publish/cancel_shopify_order/) Cancel a Shopify order
- [list_shopify_locations](https://hermoso.ai/docs/reference/publish/list_shopify_locations/) List Shopify locations
- [fulfill_shopify_order](https://hermoso.ai/docs/reference/publish/fulfill_shopify_order/) Fulfil a Shopify order
- [get_shopify_inventory](https://hermoso.ai/docs/reference/publish/get_shopify_inventory/) Get Shopify stock
- [edit_shopify_order_items](https://hermoso.ai/docs/reference/publish/edit_shopify_order_items/) Edit the items on a Shopify order
- [set_shopify_inventory](https://hermoso.ai/docs/reference/publish/set_shopify_inventory/) Set or adjust Shopify stock
- [update_shopify_order](https://hermoso.ai/docs/reference/publish/update_shopify_order/) Update a Shopify order
- [manage_shopify_draft_orders](https://hermoso.ai/docs/reference/publish/manage_shopify_draft_orders/) Shopify draft orders
- [import_shopify_buyers_to_email_leads](https://hermoso.ai/docs/reference/publish/import_shopify_buyers_to_email_leads/) Add past Shopify buyers to the email leads
- [manage_shopify_collections](https://hermoso.ai/docs/reference/publish/manage_shopify_collections/) Shopify collections

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
