Setting the shipping address also sets the TaxRate of Line Items and calculates the TaxedPrice.

If a matching price cannot be found for the given shipping address during [Line Item Price selection](ctp:api:type:LineItemPriceSelection),
a [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError) error is returned.

If you want to allow shipping to states inside a country that are not explicitly covered by a TaxRate,
set the `countryTaxRateFallbackEnabled` field to `true` in the [CartsConfiguration](ctp:api:type:CartsConfiguration) by using
the [Change CountryTaxRateFallbackEnabled](ctp:api:type:ProjectChangeCountryTaxRateFallbackEnabledAction) update action.
interface MyCartSetShippingAddressAction {
    action: "setShippingAddress";
    address?: _BaseAddress;
}

Properties

Properties

action: "setShippingAddress"
address?: _BaseAddress

Value to set. If not set, the shipping address is unset, and the taxedPrice and taxRate are unset in all Line Items.

Generated using TypeDoc