List Discounts
list_discountsList the tenant's catalog discounts: name, type (general = everyone, coupon = needs its couponCode, business = a customer discount group), percent off, validity window (validFrom through validUntil, both tenant-local days included) and whether it is active today, and the item, brand and category ids it is limited to (empty = no limit). Also returns the customer discount groups business discounts target. Filter by type, activeOnly or a case-insensitive name/coupon search; paged (default 100, max 500). Requires an operator (unpinned) credential.
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 | Optional type filter: general, coupon or business. | |
| limit | No | Page size (default 100, max 500). | |
| offset | No | Zero-based offset for paging (default 0). | |
| search | No | Optional case-insensitive substring of the name or coupon code. | |
| activeOnly | No | true = only discounts whose validity window includes today. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| total | No | ||
| offset | No | ||
| discounts | No | ||
| businessDiscountGroups | No |