Skip to main content
GET
Get the resolved cost for a variant

Authorizations

x-api-key
string
header
required

Your Upstack API key. Starts with upstack_.

x-pixel-id
string
header
required

The pixel id the request targets.

Path Parameters

productId
string
required
variantId
string
required

Response

The resolved cost breakdown.

productCost
object
required

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.