Edit in GitHubLog an issue
B2B feature. Learn more

addProductsToRequisitionList mutation

The addProductsToRequisitionList mutation adds products to a requisition list.

This mutation requires a valid customer authentication token.

Syntax

Copied to your clipboard
mutation {
addProductsToRequisitionList(
requisitionListUid: ID!
requisitionListItems: [RequisitionListItemsInput!]!
) {
AddProductsToRequisitionListOutput
}
}

Reference

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

Example usage

The following example adds products to a requisition list.

Request:

Copied to your clipboard
mutation {
addProductsToRequisitionList(
requisitionListUid: "Mg=="
requisitionListItems: [
{
sku: "MS10"
quantity: 1
selected_options: ["Y29uZmlndXJhYmxlLzkzLzUw","Y29uZmlndXJhYmxlLzE2MC8xNjg"]
}
]
) {
requisition_list {
uid
items {
items {
... on RequisitionListItemInterface {
uid
product {
uid
sku
name
}
quantity
}
}
}
items_count
}
}
}

Response:

Copied to your clipboard
{
"data": {
"addProductsToRequisitionList": {
"requisition_list": {
"uid": "Mg==",
"items": {
"items": [
{
"uid": "Mw==",
"product": {
"uid": "NTk2",
"sku": "MS10",
"name": "Logan HeatTec® Tee"
},
"quantity": 1
}
]
},
"items_count": `
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.