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
| Name | Required | Type | Description |
|---|---|---|---|
cartId | Required | ApiUpdateCartParams["id"] | ID of the cart to set the shipping method for. |
cartVersion | Required | ApiUpdateCartParams["version"] | Version of the cart to set the shipping method for. |
shippingMethodId | Required | SetMyCartShippingMethod["shippingMethod"]["id"] | ID of the shipping method to set for the cart. |
versionFallback | Optional | ApiUpdateCartParams["versionFallback"] | Flag enabling request retry in case of a ConcurrentModification error. |