# Hermoso: set_shopify_inventory · Hermoso developer docs

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

# `set_shopify_inventory`

Set or adjust Shopify stock 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

Change stock on the merchant's Shopify store. mode set (quantity becomes the new count) or adjust (quantity is added; negative subtracts). changes: [{ variantId or sku, locationId or the location's name, quantity }], up to 100. name: available (default) or on_hand for set; available, damaged, incoming, quality_control, reserved or safety_stock for adjust. reason: correction (default), received, damaged, shrinkage, restock, cycle_count_available, promotion, safety_stock, other and Shopify's other reasons. Without confirm:true NOTHING changes and the reply shows the count now and after for each: show the user, get a yes, then call again with confirm:true and each change's expected set to the 'now' number, so a sale in between is refused instead of overwritten. Read back. Free.

## Parameters

Parameter Type Description

`mode` `"set" | "adjust"`

`name` `string` which quantity: available (default) or on_hand for set

`reason` `string`

`changes` required `object[]`

`changes[].variantId` `string`

`changes[].sku` `string`

`changes[].inventoryItemId` `string`

`changes[].locationId` required `string` the location id or its exact name

`changes[].quantity` required `number`

`changes[].expected` `number` the "now" quantity the preview showed

`referenceDocumentUri` `string` why it changed, e.g. gid://my-app/PurchaseOrder/PO-12; shown in Shopify's inventory history

`confirm` `boolean`

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

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

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_shopify_inventory","arguments":{"changes":"<array>"}}}`
**CLI**

`hermoso call set_shopify_inventory --json '{"changes":"<array>"}'`

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

- [get_shopify_inventory](https://hermoso.ai/docs/reference/publish/get_shopify_inventory/) Get Shopify stock
- [manage_shopify_draft_orders](https://hermoso.ai/docs/reference/publish/manage_shopify_draft_orders/) Shopify draft orders
- [list_shopify_locations](https://hermoso.ai/docs/reference/publish/list_shopify_locations/) List Shopify locations
- [manage_shopify_collections](https://hermoso.ai/docs/reference/publish/manage_shopify_collections/) Shopify collections
- [refund_shopify_order](https://hermoso.ai/docs/reference/publish/refund_shopify_order/) Refund a Shopify order
- [manage_shopify_metafields](https://hermoso.ai/docs/reference/publish/manage_shopify_metafields/) Shopify metafields
- [cancel_shopify_order](https://hermoso.ai/docs/reference/publish/cancel_shopify_order/) Cancel a Shopify order
- [manage_shopify_pages](https://hermoso.ai/docs/reference/publish/manage_shopify_pages/) Shopify Online Store pages
- [fulfill_shopify_order](https://hermoso.ai/docs/reference/publish/fulfill_shopify_order/) Fulfil a Shopify order
- [manage_shopify_redirects](https://hermoso.ai/docs/reference/publish/manage_shopify_redirects/) Shopify URL redirects

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