Skip to main content
PUT
/
accounts
/
api
/
products
/
{productId}
/
{variantId}
/
handling-fee
Set a variant's handling fee
curl --request PUT \
  --url https://api.upstackdata.com/accounts/api/products/{productId}/{variantId}/handling-fee \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-pixel-id: <api-key>' \
  --data '
{
  "handlingFee": 1
}
'
{
  "variant": {
    "id": "<string>",
    "productId": "<string>",
    "sku": "<string>",
    "title": "<string>",
    "handlingFee": 123,
    "manualCostHistory": [
      {
        "id": "<string>",
        "cost": 123,
        "effectiveStartDate": "<string>",
        "effectiveEndDate": "<string>",
        "description": "<string>"
      }
    ]
  }
}

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.

Path Parameters

productId
string
required
variantId
string
required

Body

application/json
handlingFee
number
required

Per-unit handling fee for this variant.

Required range: x >= 0

Response

The updated variant.

variant
object
required

A single SKU under a product. manualCostHistory is the chronological list of COG lines.