Discounts: eligible listings
msg_discounts_open_api_availableCheck which listings can run discount messenger campaigns. Returns isAvailable status or a reason why not, so you can filter eligible listings before creating campaigns.
Instructions
[BETA] Checks whether a discount/special-offer messenger campaign is available for a list of listings (available). Read-only; sends nothing and charges nothing. For each itemId it returns isAvailable and, when not available, a reason. Run this FIRST, before msg_discounts_open_api_multi_create. Do not confuse it with ..._tariff_info (campaigns remaining in the plan) or ..._stats (statistics for sent campaigns).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"itemIds": "<itemIds>"
},
"name": "msg_discounts_open_api_available"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemIds | Yes | List of listing IDs to check for campaign-service availability. At least one. |