Actions25
- Store Actions
- Product Actions
- Category Actions
- Variation Actions
- Brand Actions
- Coupon Actions
- Report Actions
- Engage Profile Actions
- Engage Unsubscribe Actions
- Search Actions
Report → Profit by Date
AI-generatedSummary
Retrieve profitability-related metrics such as profit, margins, ad spend, and cost of goods sold over a specified date range from the Metorik API. Supports grouping the data by different time intervals and optionally returns only aggregated totals.
Inputs
- Start Date (required) — The start date of the report in YYYY-MM-DD format, using the store's timezone.
- End Date (required) — The end date of the report in YYYY-MM-DD format, using the store's timezone.
- Group By — The time interval to group data by for the report; options include Hour, Day, Week, Month, and Year.
- Return Totals Only — If enabled, returns only the totals summary object instead of the full time-series data.
Output shape
A JSON object containing either a time-series report of profit metrics grouped by the specified time interval or a totals object summarizing the report for the full date range.
The data includes profitability, margin, ad spend, and cost of goods sold metrics. Setting 'Return Totals Only' to true returns just the aggregated totals. The output structure follows Metorik's '/reports/profit-by-date' endpoint response.