hermosodocs

cancel_shopify_order

Cancel 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

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

ParameterTypeDescription
idrequiredstringthe order number (#1001) or gid
reasonrequired"customer" | "declined" | "fraud" | "inventory" | "staff" | "other"
refundbooleandefault true: refund the payments to the original methods
restockbooleandefault true
notifyCustomerboolean
staffNotestring
confirmboolean
confirmAmountstringthe 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.

All 728 Publishing & scheduling tools · tools.json