Get EDD Stats by Date Preset
edd_get_stats_by_presetRetrieve earnings or sales statistics using preset date filters such as today, this week, or this month. Simplify analytics with predefined time periods.
Instructions
Get earnings or sales statistics using a preset date filter (today, yesterday, this_week, this_month, etc.)
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": {
"type": "<type>",
"date": "<date>"
},
"name": "edd_get_stats_by_preset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of stats: sales (count) or earnings (revenue) | |
| date | Yes | Predefined date filter |