B2B feature. Learn more
copyItemsBetweenRequisitionLists mutation
The copyItemsBetweenRequisitionLists
mutation copies items from one requisition list to another.
This mutation requires a valid customer authentication token.
Use the storeConfig query with the is_requisition_list_active
attribute to determine whether requisition lists are enabled.
Syntax
Copied to your clipboardmutation {copyItemsBetweenRequisitionLists(sourceRequisitionListUid: ID!,destinationRequisitionListUid: ID,requisitionListItem: CopyItemsBetweenRequisitionListsInput) {CopyItemsFromRequisitionListsOutput}}
Reference
The copyItemsBetweenRequisitionLists
reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example copies an item from one requisition list to another.
Request:
Copied to your clipboardmutation {copyItemsBetweenRequisitionLists(sourceRequisitionListUid: "Mg==",destinationRequisitionListUid: "Mw==",requisitionListItem: {requisitionListItemUids: ["Nw=="]}) {requisition_list {uidnameitems_count}}}
Response:
Copied to your clipboard{"data": {"copyItemsBetweenRequisitionLists": {"requisition_list": {"uid": "Mw==","name": "Rarely ordered items","items_count": 3}}}}