B2B feature. Learn more
moveItemsBetweenRequisitionLists mutation
The moveItemsBetweenRequisitionLists
mutation moves items from one requisition list to another.
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 {moveItemsBetweenRequisitionLists(sourceRequisitionListUid: ID!destinationRequisitionListUid: IDrequisitionListItem: MoveItemsBetweenRequisitionListsInput) {MoveItemsBetweenRequisitionListsOutput}}
Reference
The moveItemsBetweenRequisitionLists
reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example moves an item from one requisition list to another.
Request:
Copied to your clipboardmutation {moveItemsBetweenRequisitionLists(sourceRequisitionListUid: "Mg=="destinationRequisitionListUid: "Mw=="requisitionListItem: {requisitionListItemUids:["MTI="]}) {source_requisition_list {uidnameitems_count}destination_requisition_list {uidnameitems_count}}}
Response:
Copied to your clipboard{"data": {"moveItemsBetweenRequisitionLists": {"source_requisition_list": {"uid": "Mg==","name": "Frequently Ordered Products","items_count": 3},"destination_requisition_list": {"uid": "Mw==","name": "Rarely ordered items","items_count": 2}}}}