manage_shopify_discounts
Edit Shopify discounts destructive
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.
Related tools
create_shopify_discount_codeCreate a Shopify discount codelist_shopify_discount_codesList Shopify discount codesmanage_shopify_productsShopify productsmanage_shopify_customersShopify customersmanage_shopify_marketsShopify marketsmanage_shopify_metaobjectsShopify metaobjectsmanage_shopify_menusShopify navigation menusmanage_shopify_price_listsShopify price listsmanage_shopify_redirectsShopify URL redirectsset_shopify_cart_recoverySet up abandoned-checkout recovery