B2B feature. Learn more
updateRequisitionListItems mutation
The updateRequisitionListItems
mutation updates products in a requisition list.
Use the storeConfig query with the is_requisition_list_active
attribute to determine whether requisition lists are enabled.
This mutation requires a valid customer authentication token.
Syntax
Copied to your clipboardmutation {updateRequisitionListItems(requisitionListUid: ID!requisitionListItems: [UpdateRequisitionListItemsInput!]!) {UpdateRequisitionListItemsOutput}}
Reference
The updateRequisitionListItems
reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example updates the quantity of an item in a requisition list.
Request:
Copied to your clipboardmutation {updateRequisitionListItems(requisitionListUid: "Mg==",requisitionListItems: [{item_id: "Mw=="quantity: 2}]){requisition_list {uidnameitems_countitems {items {uidquantityproduct {uidnamesku}}}}}}
Response:
Copied to your clipboard{"data": {"updateRequisitionListItems": {"requisition_list": {"uid": "Mg==","name": "Frequently Ordered Products","items_count": 1,"items": {"items": [{"uid": "Mw==","quantity": 2,"product": {"uid": "NTk2","name": "Logan HeatTec® Tee","sku": "MS10"}}]}}}}}