hermosodocs

edit_shopify_order_items

Edit the items on 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

Add products to a Shopify order, or change or remove its lines (quantity 0 removes one; removed units are restocked unless restock:false). Without confirm:true Shopify recalculates the order (new total, and what the buyer would owe) and NOTHING changes: show the user, get a yes, then call again with confirm:true (notifyCustomer emails the buyer the change; staffNote is for staff). When the new total is lower, refund the difference with refund_shopify_order. Line ids come from list_shopify_orders with an id; variant ids from get_shopify_inventory or list_shopify_products. Free.

Parameters

ParameterTypeDescription
idrequiredstringthe order number (#1001) or gid
addobject[]
add[].variantIdrequiredstringgid://shopify/ProductVariant/… or its number
add[].quantityrequirednumber1 or more
add[].locationIdstring
quantitiesobject[]
quantities[].lineItemIdrequiredstringthe line's id, or its SKU or title when only one line has it
quantities[].quantityrequirednumberthe new quantity; 0 removes the line
quantities[].restockbooleandefault true
notifyCustomerboolean
staffNotestring
confirmbooleantrue to commit the edit; without it nothing changes and the reply shows the new total

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/edit_shopify_order_items.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"edit_shopify_order_items","arguments":{"id":"<string>"}}}

CLI

hermoso call edit_shopify_order_items --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.

All 728 Publishing & scheduling tools · tools.json