Get Profitability Trend
GET/api/reporting/profitability/trend
Returns trend data (revenue, cost, profit) grouped by a dimension and time interval. Used for the profitability trend chart.
Authentication: Requires Bearer token
Required parameters:
- group_by: brand | sku | supplier | sales_channel | product_type | sub_sales_channel
- interval: day | week | month | quarter | year
Optional:
- limit: integer
- sort: asc | desc
- metrics[]: revenue | cogs | total_cost | profit | quantity | num_orders | margin
Request
Responses
- 200
Successful response