Skip to main content
DELETE
/
accounts
/
api
/
costs
/
lines
/
{lineId}
Delete a cost line
curl --request DELETE \
  --url https://api.upstackdata.com/accounts/api/costs/lines/{lineId} \
  --header 'x-api-key: <api-key>' \
  --header 'x-pixel-id: <api-key>'
{
  "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.

Path Parameters

lineId
string
required

Query Parameters

costType
enum<string>
required

The five cost-line surfaces. Each value selects the corresponding line shape in the line (POST) or updates (PUT) field of the request body.

Available options:
order,
gateway,
shipping,
variable,
fixed

Response

The updated cost config (with the line removed).

config
object
required