# Hermoso: manage_shopify_discounts · Hermoso developer docs

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

# `manage_shopify_discounts`

Edit Shopify discounts 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 an existing discount on the merchant's Shopify store (create_shopify_discount_code makes one; list_shopify_discount_codes lists them). Name it by id or code. action get, codes (the codes it has), update (title, code, percentOff or amountOff, minSubtotal or minQuantity, startsAt, endsAt (null = no end), usageLimit, oncePerCustomer; amount-off and free-shipping codes), activate (switch an expired or paused code back on), deactivate, delete, add_codes (codes: up to 250 new unique codes on the same discount, e.g. one per influencer; each failure is named). Every change to a live code is a preview until confirm:true. Free.

## Parameters

Parameter Type Description

`action` `"get" | "codes" | "update" | "activate" | "deactivate" | "delete" | "add_codes"` default get

`id` `string` gid://shopify/DiscountCodeNode/… or its number

`code` `string` find it by its code; update: the new code

`title` `string`

`percentOff` `number`

`amountOff` `number`

`appliesOnEachItem` `boolean`

`minSubtotal` `string | null`

`minQuantity` `number | null`

`startsAt` `string`

`endsAt` `string | null`

`usageLimit` `number | null`

`oncePerCustomer` `boolean`

`codes` `string[]` add_codes: the new codes

`limit` `number`

`confirm` `boolean` true after the user agreed

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

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

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"manage_shopify_discounts","arguments":{}}}`
**CLI**

`hermoso call manage_shopify_discounts --json '{}'`

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

- [create_shopify_discount_code](https://hermoso.ai/docs/reference/publish/create_shopify_discount_code/) Create a Shopify discount code
- [list_shopify_discount_codes](https://hermoso.ai/docs/reference/publish/list_shopify_discount_codes/) List Shopify discount codes
- [manage_shopify_products](https://hermoso.ai/docs/reference/publish/manage_shopify_products/) Shopify products
- [manage_shopify_customers](https://hermoso.ai/docs/reference/publish/manage_shopify_customers/) Shopify customers
- [manage_shopify_markets](https://hermoso.ai/docs/reference/publish/manage_shopify_markets/) Shopify markets
- [manage_shopify_metaobjects](https://hermoso.ai/docs/reference/publish/manage_shopify_metaobjects/) Shopify metaobjects
- [manage_shopify_menus](https://hermoso.ai/docs/reference/publish/manage_shopify_menus/) Shopify navigation menus
- [manage_shopify_price_lists](https://hermoso.ai/docs/reference/publish/manage_shopify_price_lists/) Shopify price lists
- [manage_shopify_redirects](https://hermoso.ai/docs/reference/publish/manage_shopify_redirects/) Shopify URL redirects
- [set_shopify_cart_recovery](https://hermoso.ai/docs/reference/publish/set_shopify_cart_recovery/) Set up abandoned-checkout recovery

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