List discounts
list_discountsList discount codes in a workspace and filter by enabled status, type, or code search; use offset paging while hasMore is true to retrieve all results.
Instructions
List discount codes in the workspace. Filter by enabled, type, or a code search; page on with offset while hasMore is true.
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_discounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| limit | No | ||
| offset | No | ||
| search | No | Substring match on the code | |
| enabled | No |