data-src=../../../../../includes/commerce-only.md

removeNegotiableQuoteItems mutation

The removeNegotiableQuoteItems mutation removes the specified products from a negotiable quote.

data-variant=info
data-slots=text
Removing the last product from a negotiable quote causes the quote to be in a terminal state. You cannot add products to the quote, nor can you modify the quantity of any items. You can only close or delete the quote.

This mutation requires a valid customer authentication token.

Syntax

    removeNegotiableQuoteItems(
        input: RemoveNegotiableQuoteItemsInput!
    ): RemoveNegotiableQuoteItemsOutput

Reference

The removeNegotiableQuoteItems reference provides detailed information about the types and fields defined in this mutation.

Example usage

The following example removes a product from a negotiable quote.

Request:

mutation {
  removeNegotiableQuoteItems(
    input: {
      quote_uid: "xCA4wSZEHsb5QbFiKfoq5k1Dk8vIPBgb"
      quote_item_uids: ["MTc="]
    }
  ) {
    quote {
      uid
      name
      updated_at
      items {
        uid
        product {
          uid
          sku
          name
        }
        quantity
        prices {
          price {
            value
          }
        }
      }
    }
  }
}

Response:

{
  "data": {
    "removeNegotiableQuoteItems": {
      "quote": {
        "uid": "xCA4wSZEHsb5QbFiKfoq5k1Dk8vIPBgb",
        "name": "April 22 request",
        "updated_at": "2021-04-23 18:21:44",
        "items": [
          {
            "uid": "MTU=",
            "product": {
              "uid": "MjA=",
              "sku": "24-UG01",
              "name": "Quest Lumaflex™ Band"
            },
            "quantity": 7,
            "prices": {
              "price": {
                "value": 19
              }
            }
          },
          {
            "uid": "MTY=",
            "product": {
              "uid": "MTg=",
              "sku": "24-UG02",
              "name": "Pursuit Lumaflex™ Tone Band"
            },
            "quantity": 8,
            "prices": {
              "price": {
                "value": 16
              }
            }
          }
        ]
      }
    }
  }
}