Skip to main content

Show SKU COGS Health Detail

GET 

/api/cogs/sku-health/101

Returns detailed COGS health metrics for a specific product by product ID.

Scope: The top-level metrics (cogs_avg, cogs_min, cogs_max, cogs_median, variation_pct, total_quantity, total_value, active_layer_count, init_cogs) cover the warehouse FIFO ledger only. Amazon FBA stock — which uses a separate WAC ledger and has no warehouse_id — is intentionally excluded so this matches the cache-backed inventory_avg_cost displayed on the product Overview page.

Amazon FBA inventory (if the product has any) is returned as a separate amazon_summary object with its own quantity-weighted average, min/max cost, layer count, and integration instance count. amazon_summary is null when the product has no Amazon FBA stock.

Authentication: Requires Bearer token.

Request

Responses

Successful response