Get the resolved cost for a variant
PRODUCTS
Get the resolved cost for a variant
Returns the effective per-unit cost for a single variant, including which configuration tier supplied it (per-variant COG line, global override, or default fallback).
Required scope: costs:read.
GET
Get the resolved cost for a variant
Authorizations
Your Upstack API key. Starts with upstack_.
The pixel id the request targets.
Response
The resolved cost breakdown.
The resolved cost breakdown for a single variant at the current moment.
effectiveCost is what the COGS recalculation flow uses; source
tells you whether it came from a per-variant COG line, the global
override, or the default fallback.