cancel_shopify_order
Cancel a Shopify order destructive
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 |
|---|---|---|
idrequired | string | the order number (#1001) or gid |
reasonrequired | "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.
Related tools
fulfill_shopify_orderFulfil a Shopify orderrefund_shopify_orderRefund a Shopify orderedit_shopify_order_itemsEdit the items on a Shopify orderlist_shopify_locationsList Shopify locationsupdate_shopify_orderUpdate a Shopify orderget_shopify_inventoryGet Shopify stockimport_shopify_buyers_to_email_leadsAdd past Shopify buyers to the email leadsset_shopify_inventorySet or adjust Shopify stockshopify_sales_reportShopify sales reportmanage_shopify_draft_ordersShopify draft orders