Input used to select a ShippingRatePriceTier. If no matching tier can be found, or the input is not set, the default price for the shipping rate is used.

interface CartSetShippingRateInputAction {
    action: "setShippingRateInput";
    shippingRateInput?: ShippingRateInputDraft;
}

Properties

action: "setShippingRateInput"
shippingRateInput?: ShippingRateInputDraft

The data type of this field depends on the shippingRateInputType.type configured in the Project:

- If `CartClassification`, it must be [ClassificationShippingRateInputDraft](ctp:api:type:ClassificationShippingRateInputDraft).
- If `CartScore`, it must be [ScoreShippingRateInputDraft](ctp:api:type:ScoreShippingRateInputDraft).
- If `CartValue`, it cannot be set.

Generated using TypeDoc