# Hermoso: edit_shopify_order_items · Hermoso developer docs

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

# `edit_shopify_order_items`

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

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

Parameter Type Description

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

`add` `object[]`

`add[].variantId` required `string` gid://shopify/ProductVariant/… or its number

`add[].quantity` required `number` 1 or more

`add[].locationId` `string`

`quantities` `object[]`

`quantities[].lineItemId` required `string` the line's id, or its SKU or title when only one line has it

`quantities[].quantity` required `number` the new quantity; 0 removes the line

`quantities[].restock` `boolean` default true

`notifyCustomer` `boolean`

`staffNote` `string`

`confirm` `boolean` true 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](https://hermoso.ai/docs/credits/).

## Related tools

- [refund_shopify_order](https://hermoso.ai/docs/reference/publish/refund_shopify_order/) Refund a Shopify order
- [list_shopify_orders](https://hermoso.ai/docs/reference/publish/list_shopify_orders/) List Shopify orders
- [get_shopify_inventory](https://hermoso.ai/docs/reference/publish/get_shopify_inventory/) Get Shopify stock
- [list_shopify_products](https://hermoso.ai/docs/reference/publish/list_shopify_products/) List the Shopify catalog
- [update_shopify_order](https://hermoso.ai/docs/reference/publish/update_shopify_order/) Update a Shopify order
- [fulfill_shopify_order](https://hermoso.ai/docs/reference/publish/fulfill_shopify_order/) Fulfil a Shopify order
- [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
- [cancel_shopify_order](https://hermoso.ai/docs/reference/publish/cancel_shopify_order/) Cancel a Shopify order
- [shopify_sales_report](https://hermoso.ai/docs/reference/publish/shopify_sales_report/) Shopify sales report
- [list_shopify_locations](https://hermoso.ai/docs/reference/publish/list_shopify_locations/) List Shopify locations

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