# Hermoso: list_shopify_discount_codes · Hermoso developer docs

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

# `list_shopify_discount_codes`

List Shopify discount codes read-only

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

The discount codes on the merchant's Shopify store, newest first: the code, what it takes off, the minimum purchase, start and end, the use limit, how many times it has been used (Shopify updates that count in the background, so it can lag a few minutes) and its status (ACTIVE, SCHEDULED or EXPIRED). Filter by status (active, scheduled, expired) or search the title. Pass cursor for more. This is where the id for disable_shopify_discount_code comes from. Read-only, free. Works for the Shopify store connected to this brand (Connectors > Shopify, or connect_shopify_store) or the store this account was installed on.

## Parameters

Parameter Type Description

`status` `"active" | "scheduled" | "expired"` only codes with this status

`search` `string` match the discount title

`limit` `number` 1 to 50, default 25

`cursor` `string` pageInfo.endCursor from the previous reply

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

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

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

`hermoso call list_shopify_discount_codes --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

- [disable_shopify_discount_code](https://hermoso.ai/docs/reference/publish/disable_shopify_discount_code/) Disable a Shopify discount code
- [connect_shopify_store](https://hermoso.ai/docs/reference/publish/connect_shopify_store/) Connect a Shopify store
- [create_shopify_discount_code](https://hermoso.ai/docs/reference/publish/create_shopify_discount_code/) Create a Shopify discount code
- [delete_shopify_marketing_activity](https://hermoso.ai/docs/reference/publish/delete_shopify_marketing_activity/) Delete a Shopify marketing activity
- [list_shopify_orders](https://hermoso.ai/docs/reference/publish/list_shopify_orders/) List Shopify orders
- [list_shopify_marketing_activities](https://hermoso.ai/docs/reference/publish/list_shopify_marketing_activities/) List Shopify marketing activities
- [shopify_sales_report](https://hermoso.ai/docs/reference/publish/shopify_sales_report/) Shopify sales report
- [record_shopify_marketing_activity](https://hermoso.ai/docs/reference/publish/record_shopify_marketing_activity/) Record an ad or campaign in Shopify > Marketing
- [import_shopify_buyers_to_email_leads](https://hermoso.ai/docs/reference/publish/import_shopify_buyers_to_email_leads/) Add past Shopify buyers to the email leads
- [publish_to_shopify_product](https://hermoso.ai/docs/reference/publish/publish_to_shopify_product/) Publish an image or video onto a Shopify product

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