Skip to main content
POST

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

line shape is discriminated by costType — the listed schemas for each cost type are validated server-side. Sending an OrderCostLine shape with costType=variable is rejected with 400.

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
line
object
required

One of the per-type line shapes, selected by costType.

Response

The updated cost config (with the new line appended).

config
object
required