disable_shopify_discount_code
Disable a Shopify discount code destructive
Description
Stop a discount code working at checkout on the merchant's Shopify store, by id (from list_shopify_discount_codes) or by the code itself. Shopify keeps the code and it can be switched back on in Shopify admin under Discounts, but every customer holding it loses it at once, so without confirm:true NOTHING changes and the reply names the code and what it does: show the user, get a yes, then call again with confirm:true. The answer is the status read back from Shopify (EXPIRED means it no longer works). Works for the Shopify store connected to this brand (Connectors > Shopify, or connect_shopify_store) or the store this account was installed on. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | gid://shopify/DiscountCodeNode/… from list_shopify_discount_codes; use this or code |
code | string | the code text customers type, e.g. SUMMER20; use this or id |
confirm | boolean | true to disable it; without it nothing changes and the reply names the code |
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/disable_shopify_discount_code.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"disable_shopify_discount_code","arguments":{}}}
CLI
hermoso call disable_shopify_discount_code --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
list_shopify_discount_codesList Shopify discount codesconnect_shopify_storeConnect a Shopify storelist_shopify_ordersList Shopify orderscreate_shopify_discount_codeCreate a Shopify discount codeshopify_sales_reportShopify sales reportdelete_shopify_marketing_activityDelete a Shopify marketing activityimport_shopify_buyers_to_email_leadsAdd past Shopify buyers to the email leadslist_shopify_marketing_activitiesList Shopify marketing activitiesupdate_shopify_orderUpdate a Shopify orderrecord_shopify_marketing_activityRecord an ad or campaign in Shopify > Marketing