Remove a COG line from a variant’s history. Triggers a per-order COGS recalculation downstream (the deleted line is passed through to the recalc trigger so affected-orders can be identified).
Required scope: costs:write.
Documentation Index
Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
Use this file to discover all available pages before exploring further.
Your Upstack API key. Starts with upstack_.
The pixel id the request targets.
The updated variant (with the line removed).
A single SKU under a product. manualCostHistory is the chronological list of COG lines.