Add a COG line to a variant
PRODUCTS
Add a COG line to a variant
Append a new COG line to a variant’s manualCostHistory. The server
assigns a ULID for the new line. Triggers a per-order COGS
recalculation downstream.
Required scope: costs:write.
POST
Add a COG line to a variant
Authorizations
Your Upstack API key. Starts with upstack_.
The pixel id the request targets.
Body
application/json
Response
The updated variant (with the new line added to history).
A single SKU under a product. manualCostHistory is the chronological list of COG lines.