Profile spendings
items_post_account_spendingsRetrieve a detailed report of account spendings grouped by service type (VAS, CPA, tariff, etc.) for a specified date range. Filter by category, location, or listings to analyze spending patterns.
Instructions
Returns a REPORT of the profile's spendings over a period by service type (post_account_spendings) — how much was spent on vas/cpa/tariff, etc. Read-only, spends no money (only shows already incurred spending). Period dateFrom..dateTo (YYYY-MM-DD). Note: grouping here is a STRING "day"|"week"|"month" (NOT an object, unlike items_post_item_analytics). Data depth no more than 270 days, no more than 1 request per minute. Required: dateFrom, dateTo, spendingTypes, grouping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateFrom | Yes | Start of the period, inclusive (YYYY-MM-DD); no more than 270 days back. | |
| dateTo | Yes | End of the period, inclusive (YYYY-MM-DD). | |
| spendingTypes | Yes | Spending types for the report (at least 1): vas, perf_vas, lf, cv, tariff, subscription, cpa, bundle. | |
| grouping | Yes | Group spendings by period — a string (required): day (by day), week (by week), month (by month). | |
| filter | No | Optional selection filters: categoryIDs — category IDs, itemIDs — listing IDs, locationIDs — location IDs. employeeIDs is NOT supported here. Without the filter — spendings of the entire profile. | |
| user_id | No | ID of the owner user. Defaults to Profile_id from .env. |