hermosodocs

manage_shopify_discounts

Edit Shopify discounts destructive

Area: SHOPIFY: the merchant's own storefront · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool 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

ParameterTypeDescription
action"get" | "codes" | "update" | "activate" | "deactivate" | "delete" | "add_codes"default get
idstringgid://shopify/DiscountCodeNode/… or its number
codestringfind it by its code; update: the new code
titlestring
percentOffnumber
amountOffnumber
appliesOnEachItemboolean
minSubtotalstring | null
minQuantitynumber | null
startsAtstring
endsAtstring | null
usageLimitnumber | null
oncePerCustomerboolean
codesstring[]add_codes: the new codes
limitnumber
confirmbooleantrue 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.

All 728 Publishing & scheduling tools · tools.json