Get Accounting COGS Drilldown
GET/api/reporting/accounting-cogs/drilldown
Underlying movements behind one COGS report row — the individual accounting_cogs view rows (sales fulfillments, customer returns, inventory adjustments, FBA movements) that compose the clicked group/SKU aggregate. Paginated, sortable, searchable, with a totals block that reconciles to the report row that opened it (same 9 metrics).
reports:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Identify the clicked row with dimensions[<group_by>]=<value> for each active group-by dimension down to that row's level (e.g. sales_channel, then sku). Pass the same filter[date_range_from]/filter[date_range_to] the report was generated with. Each row includes a product_link to the product detail page and a source_label/src_id for the originating accounting record.
Authentication: Requires Bearer token. Scope: reports.
Request
Responses
- 200
- 401
- 403
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.