Skip to content
Last update: January 30, 2024

unselectCartItems mutation

This mutation allows you to unselect specific cart items within a shopping cart.

Arguments

The InputChangeCartItemsSelectedType represents a set of input parameters for unselecting cart items.

Field Description
cartId {String} The Id of the cart.
storeId {String!} The Id of the store.
cartName {String} The name or description of the cart.
userId {String!} The Id of the user.
currencyCode {String} The currency code for the cart.
cultureName {String} The culture or locale name for the cart.
cartType {String} The type of the cart.
lineItemIds {[String]} The list of line items Ids.

Possible returns

Possible return Description
CartType The properties and fields associated with a shopping cart.
mutation unSelectCartItems($command: InputChangeCartItemsSelectedType!) {
  unSelectCartItems(command: $command) {
    id
    items{
      id
      name
      selectedForCheckout
    }
  }
}
"command":{
  "storeId": "B2B-store",
  "userId": "23a7f0e9-0186-4293-b511-bf894583fd3b",
  "cartId": "3095ebfe-1de6-4a75-9774-2c4dfdb3d002",
  "currencyCode": "USD",
  "cultureName": "en-US",
  "cartName": "default",
  "lineItemIds":["020350a1-c44e-472f-b342-fda988e23a68", "49b245fc-aa85-4c42-9766-37b5098dc0ae", "6a282441-92de-4360-89a1-021e8b0ad986"
  ]
}