Skip to main content

Export Inventory COGS Report

GET 

/api/reporting/inventory-cogs/export

Streams the flattened Inventory COGS report as a CSV file (inventory-cogs.csv): one row per deepest group, prefixed with the active group-by dimension columns, followed by Avg Cost, Qty Sold, Qty Returned, Qty Adjusted, Net Qty, Gross COGS, Returned COGS, Adjusted COGS, and Net COGS.

Required scope: reports:read

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

The response is a file download (text/csv), not JSON.

Authentication: Requires Bearer token. Scope: reports.

Request

Responses

OK

Response Headers
    Content-Type