List location discounts
list_discountsRetrieve every configured discount for an authorized restaurant location. Pass a location ID to see all discounts available at that site.
Instructions
List every discount configured for one authorized location. Requires a Crave merchant API key; the API verifies that the key can access the requested location.
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 |
|---|---|---|---|
| locationId | No | Omit to use CRAVEUP_LOCATION_ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| mode | Yes | ||
| status | Yes | ||
| changes | Yes | ||
| summary | Yes | ||
| operation | Yes | ||
| planDigest | Yes | ||
| environment | Yes | ||
| nextActions | Yes | ||
| schemaVersion | Yes |