You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
AddProductToCartParams
Parameters for adding a product to cart.
export interface AddProductToCartParams extends CreateAddLineItemActionParams {
cartId: ApiUpdateCartParams["id"];
cartVersion: ApiUpdateCartParams["version"];
versionFallback?: ApiUpdateCartParams["versionFallback"];
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
cartId | Required | ApiUpdateCartParams["id"] | ID of the cart to add the product to. |
cartVersion | Required | ApiUpdateCartParams["version"] | Version of the cart to add the product to. |
versionFallback | Optional | ApiUpdateCartParams["versionFallback"] | Flag enabling request retry in case of a ConcurrentModification error. |