Skip to main content

Get Profitability Trend

GET 

/api/reporting/profitability/trend

Returns trend data (per-interval metrics) grouped by a dimension. When indirect costs are included (default), per-interval total cost and profit reflect cost-entry allocations; period allocations are day-prorated across intervals. Margin-ladder metrics are available: gross_profit / gross_margin (revenue minus COGS), contribution_margin / contribution_margin_pct (after channel and indirect costs), plus ad_spend and tacos for sku, brand, and supplier groupings.

Required scope: reports:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Rows may include {interval}_indirect_cost keys and a 'Non-Product / Unallocated' row (is_unallocated: true) for amounts that cannot be attributed to the chosen grouping.

Authentication: Requires Bearer token

Request

Responses

OK

Response Headers
    Content-Type