Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

SetShippingMethodParams

Parameters for setting cart shipping method.

export interface SetShippingMethodParams {
	cartId: ApiUpdateCartParams["id"];
	cartVersion: ApiUpdateCartParams["version"];
	shippingMethodId: SetMyCartShippingMethod["shippingMethod"]["id"];
	versionFallback?: ApiUpdateCartParams["versionFallback"];
}

Properties

NameRequiredTypeDescription
cartIdRequiredApiUpdateCartParams["id"]ID of the cart to set the shipping method for.
cartVersionRequiredApiUpdateCartParams["version"]Version of the cart to set the shipping method for.
shippingMethodIdRequiredSetMyCartShippingMethod["shippingMethod"]["id"]ID of the shipping method to set for the cart.
versionFallbackOptionalApiUpdateCartParams["versionFallback"]Flag enabling request retry in case of a ConcurrentModification error.

Referenced Types

On this page