Discounts: campaign statistics
msg_discounts_open_api_statsGet statistics for sent discount campaigns: offers sent, accepted, discount amount, cost, and dates. Analyze results over a specified period.
Instructions
[BETA] Returns statistics for already-sent discount/special-offer campaigns over a period (stats). Read-only; sends nothing and charges nothing. For each campaign: itemId, offerSlug, send and expiration dates, the number of offers sent (count) and accepted by buyers (accepted), the discount amount, and the cost. Use it to analyze results; for eligibility checks use ..._available, and for the remaining plan balance use ..._tariff_info.
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": {
"dateTimeFrom": "<dateTimeFrom>",
"dateTimeTo": "<dateTimeTo>"
},
"name": "msg_discounts_open_api_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateTimeTo | Yes | End of the selection period, RFC3339 / ISO 8601 format (e.g. 2022-03-01T12:00:00Z). | |
| dateTimeFrom | Yes | Start of the selection period, RFC3339 / ISO 8601 format (e.g. 2022-02-24T05:00:00Z). |