Skip to main content
PUT
/
accounts
/
api
/
costs
/
global-product-override
Update the global product override
curl --request PUT \
  --url https://api.upstackdata.com/accounts/api/costs/global-product-override \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-pixel-id: <api-key>' \
  --data '
{
  "defaultCogs": 5,
  "globalHandlingFee": 1.5,
  "currency": "USD"
}
'
{
  "config": {}
}

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.

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.

Body

application/json

At least one field is required. Applied to any product variant with no per-variant COG line. currency is purely informational — the underlying cost number is stored as-is and applied as the product's effective COGS.

defaultCogs
number

Default per-unit COGS amount for un-mapped variants.

Required range: x >= 0
globalHandlingFee
number

Per-unit handling fee added on top of COGS.

Required range: x >= 0
currency
string

ISO currency code (e.g. USD).

Response

The updated global override configuration.

config
object
required