B2B feature. Learn more
updateNegotiableQuoteQuantities mutation
The updateNegotiableQuoteQuantities
mutation changes the quantity of one or more products in an active negotiable quote.
Use the removeNegotiableQuoteItems
mutation to completely remove a product from a negotiable quote.
This query requires a valid customer authentication token.
Syntax
Copied to your clipboardupdateNegotiableQuoteQuantities(input: UpdateNegotiableQuoteQuantitiesInput!): UpdateNegotiableQuoteItemsQuantityOutput
Reference
The updateNegotiableQuoteQuantities
reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example changes the quantity of two products in a negotiable quote.
Request:
Copied to your clipboardmutation {updateNegotiableQuoteQuantities(input: {quote_uid: "xCA4wSZEHsb5QbFiKfoq5k1Dk8vIPBgb"items: [{ quote_item_uid: "MTU=", quantity: 7 }{ quote_item_uid: "MTY=", quantity: 8 }]}) {quote {uidnameupdated_atitems {uidproduct {uidskuname}quantityprices {price {value}}}}}}
Response:
Copied to your clipboard{"data": {"updateNegotiableQuoteQuantities": {"quote": {"uid": "xCA4wSZEHsb5QbFiKfoq5k1Dk8vIPBgb","name": "April 22 request","updated_at": "2021-04-23 14:43:42","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}}},{"uid": "MTc=","product": {"uid": "MTc=","sku": "24-UG04","name": "Zing Jump Rope"},"quantity": 10,"prices": {"price": {"value": 12}}}]}}}