Edit in GitHubLog an issue
B2B feature. Learn more

moveItemsBetweenRequisitionLists mutation

The moveItemsBetweenRequisitionLists mutation moves items from one requisition list to another.

This mutation requires a valid customer authentication token.

Syntax

Copied to your clipboard
mutation {
moveItemsBetweenRequisitionLists(
sourceRequisitionListUid: ID!
destinationRequisitionListUid: ID
requisitionListItem: 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 clipboard
mutation {
moveItemsBetweenRequisitionLists(
sourceRequisitionListUid: "Mg=="
destinationRequisitionListUid: "Mw=="
requisitionListItem: {
requisitionListItemUids:
["MTI="]
}
) {
source_requisition_list {
uid
name
items_count
}
destination_requisition_list {
uid
name
items_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
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.