Skip to main content
DELETE
/
accounts
/
api
/
products
/
{productId}
/
{variantId}
/
cogs
/
{cogId}
Delete a COG line
curl --request DELETE \
  --url https://api.upstackdata.com/accounts/api/products/{productId}/{variantId}/cogs/{cogId} \
  --header 'x-api-key: <api-key>' \
  --header 'x-pixel-id: <api-key>'
{
  "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
cogId
string
required

Response

The updated variant (with the line removed).

variant
object
required

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