Skip to main content
GET
Get cost configuration

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.

Query Parameters

type
enum<string>

Filter to a single cost type. Cost configuration type. Used to filter /api/costs.

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

Response

The cost configuration, or the filtered subset.

With ?type=, the response is { "config": … } — that one config, or null when none is stored for the type. Without it, the response is { "configs": … }, every config keyed by cost type.

config
Global product override · object

Present when ?type= is supplied.

configs
object

Present when ?type= is omitted.