deleteCartItems

deleteCartItems is responsible for deleting items from an existing shopping cart.

Arguments

input : CartItemsDeleteInput!

The input object contains the unique identifier (ID) for the cart and the items that need to be deleted.


Returns

CartResponse.*: CartResponse

Any requested field from the CartResponse object.


Examples

{
    "input": {
        "id": "{{cartId}}",
        "items": {
            "amazonProducts": [{
                "productId": "{{productId}}"
            }],
            "shopifyProducts": [{
                "variantId": "{{variantId}}"
            }]
        }
    }
}
mutation ($input: CartItemsDeleteInput!) {
    deleteCartItems(input: $input) {
        id
        buyerIdentity {
            firstName
            lastName
            address1
            address2
            city
            provinceCode
            countryCode
            postalCode
            email
            phone
        }
        stores {
            ... on AmazonStore {
                store
                cartLines {
                    quantity
                    product {
                        id
                    }
                }
                offer {
                    subtotal {
                        value
                        displayValue
                        currency
                    }
                    margin {
                        value
                        displayValue
                        currency
                    }
                    notAvailableIds
                    shippingMethods {
                        id
                        label
                        price {
                            value
                            displayValue
                            currency
                        }
                        taxes {
                            value
                            displayValue
                            currency
                        }
                        total {
                            value
                            displayValue
                            currency
                        }
                    }
                }
            }
            ... on ShopifyStore {
                store
                cartLines {
                    quantity
                    variant {
                        id
                    }
                }
                offer {
                    subtotal {
                        value
                        displayValue
                        currency
                    }
                    margin {
                        value
                        displayValue
                        currency
                    }
                    notAvailableIds
                    shippingMethods {
                        id
                        label
                        price {
                            value
                            displayValue
                            currency
                        }
                        taxes {
                            value
                            displayValue
                            currency
                        }
                        total {
                            value
                            displayValue
                            currency
                        }
                    }
                }
            }
        }
    }
}