Edit in GitHubLog an issue
B2B feature. Learn more

addRequisitionListItemsToCart mutation

The addRequisitionListItemsToCart mutation adds requisition list items to the cart. The requisition list does not change after adding items to the cart.

This mutation requires a valid customer authentication token.

Syntax

Copied to your clipboard
mutation {
addRequisitionListItemsToCart (
requisitionListUid: ID
requisitionListItemUids: [ID!]
) {
AddRequisitionListItemsToCartOutput
}
}

Reference

The addRequisitionListItemsToCart reference provides detailed information about the types and fields defined in this mutation.

Example usage

The following example adds items to the cart.

Request:

Copied to your clipboard
mutation {
addRequisitionListItemsToCart (
requisitionListUid: "Mg=="
requisitionListItemUids:
["Mw==", "Ng==", "Nw=="]
)
{
status
cart {
items {
uid
product {
uid
sku
name
}
}
}
}
}

Response:

Copied to your clipboard
{
"data": {
"addRequisitionListItemsToCart": {
"status": true,
"cart": {
"items": [
{
"uid": "NQ==",
"product": {
"uid": "NTk2",
"sku": "MS10",
"name": "Logan HeatTec® Tee"
}
},
{
"uid": "Nw==",
"product": {
"uid": "MTI=",
"sku": "24-WB03",
"name": "Driven Backpack"
}
},
{
"uid": "OA==",
"product": {
"uid": "Mg==",
"sku": "24-MB04",
"name": "Strive Shoulder Pack"
}
}
]
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.