# Hermoso: cancel_shopify_order · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/cancel_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/) / cancel_shopify_order

# `cancel_shopify_order`

Cancel 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

Cancel a Shopify order. Shopify CANNOT undo a cancellation. By default it refunds what was paid to the original payment and puts the items back in stock (refund:false / restock:false keep either); notifyCustomer emails the buyer; staffNote (≤255) is for staff. Without confirm:true NOTHING changes and the reply states the refund amount: show the user, get a yes, then call again with confirm:true and confirmAmount set to that exact amount. Shopify cancels in the background, so the reply says whether the order read back cancelled; never cancel it twice. Free.

## Parameters

Parameter Type Description

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

`reason` required `"customer" | "declined" | "fraud" | "inventory" | "staff" | "other"`

`refund` `boolean` default true: refund the payments to the original methods

`restock` `boolean` default true

`notifyCustomer` `boolean`

`staffNote` `string`

`confirm` `boolean`

`confirmAmount` `string` the refund amount the preview showed, e.g. "49.00"

## 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/cancel_shopify_order`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"cancel_shopify_order","arguments":{"id":"<string>","reason":"<one of the listed values>"}}}`
**CLI**

`hermoso call cancel_shopify_order --json '{"id":"<string>","reason":"<one of the listed values>"}'`

## 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

- [fulfill_shopify_order](https://hermoso.ai/docs/reference/publish/fulfill_shopify_order/) Fulfil a Shopify order
- [refund_shopify_order](https://hermoso.ai/docs/reference/publish/refund_shopify_order/) Refund a Shopify order
- [edit_shopify_order_items](https://hermoso.ai/docs/reference/publish/edit_shopify_order_items/) Edit the items on a Shopify order
- [list_shopify_locations](https://hermoso.ai/docs/reference/publish/list_shopify_locations/) List Shopify locations
- [update_shopify_order](https://hermoso.ai/docs/reference/publish/update_shopify_order/) Update a Shopify order
- [get_shopify_inventory](https://hermoso.ai/docs/reference/publish/get_shopify_inventory/) Get Shopify stock
- [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
- [set_shopify_inventory](https://hermoso.ai/docs/reference/publish/set_shopify_inventory/) Set or adjust Shopify stock
- [shopify_sales_report](https://hermoso.ai/docs/reference/publish/shopify_sales_report/) Shopify sales report
- [manage_shopify_draft_orders](https://hermoso.ai/docs/reference/publish/manage_shopify_draft_orders/) Shopify draft orders

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