list_discount_codes
List all discount codes from a Shopify store, with optional filters for status or search criteria. Use this to view and manage your promotional codes.
Instructions
Lists all discount codes in the shop
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_discount_codes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| first | No | Number of results (max 50) | |
| query | No | Search filter (e.g. "status:active") |