COSTS
Update shipping cost settings
Switch the shipping cost attribution method. fixedRateAmount is
required when method=fixed_rate.
Triggers a per-order COGS recalculation downstream.
Required scope: costs:write.
PUT
Authorizations
Your Upstack API key. Starts with upstack_.
The pixel id the request targets.
Body
application/json
Shipping cost attribution method.
shopify_charges— use the shipping charge captured on each order.fixed_rate— apply a flat per-order amount (fixedRateAmountrequired).shipping_profiles— match shipping zones / weights configured in Shopify.
Available options:
shopify_charges, fixed_rate, shipping_profiles Required when method=fixed_rate. Applied as the per-order shipping cost.
Required range:
x >= 0ISO currency code (e.g. USD).
Response
The updated shipping configuration.