Skip to main content

Recalculate SKU COGS

POST 

/api/cogs/sku-health/:id/recalculate

Queues a COGS recalculation for all FIFO layers of a specific product as a background job. The request returns immediately with a tracked_job_log_id you can use to track progress; the updated costs land once the job completes. Returns a message only (no tracked_job_log_id) when the product has no FIFO layers to recalculate.

Required scope: inventory:write

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

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type