Skip to main content

Get Contribution Margin Cost Analysis

GET 

/api/reporting/contribution-margin/cost-analysis

Contribution margin measures profitability after both cost of goods sold and allocated operating costs:

  • Gross Profit = Revenue − COGS
  • Contribution Dollars = Gross Profit − Allocated Costs
  • Contribution Margin % = Contribution Dollars ÷ Revenue × 100
Required scope: reports:read

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

Revenue and COGS come from per-order-line financial records that are kept current by background financial calculations. Allocated costs come from the cost allocation system (cost entries prorated across products, orders, brands, suppliers, or sales channels).

Returns an overview of all allocated costs feeding the contribution margin reports: the total amount allocated, how many individual allocations and distinct cost entries produced it, and three breakdowns —

  • by_allocatable_type: what kind of entity the costs were allocated to (products, orders, brands, suppliers, sales channels). full_type is the internal type identifier; type is its short name.
  • by_cost_entry_type: the user-defined cost categories (e.g. Amazon Advertising, Warehouse Rent). Allocations whose cost entry has no type are grouped under Uncategorized.
  • by_proration_strategy: how each allocation was split (revenue_based, cost_based, weight_based, volume_based, quantity_based, specific_line, or manual).

Amounts are in the account's base currency. Breakdown rows are sorted by total amount, descending.

Date filtering: date_from and date_to must BOTH be provided for date filtering to apply — if either is omitted the report covers all available history. Sales figures are filtered by order date; allocated costs are matched by their allocation period when one is set (any overlap with the requested range counts), otherwise by their allocation date.

Authentication: Requires Bearer token. Scope: reports (read/write).

Request

Responses

OK

Response Headers
    Content-Type