B2B feature. Learn more
RequisitionListItemInterface attributes and implementations
RequisitionListItemInterface
provides details about items in a requisition list. It has the following implementations:
BundleRequisitionListItem
ConfigurableRequisitionListItem
DownloadableRequisitionListItem
GiftCardRequisitionListItem
SimpleRequisitionListItem
VirtualRequisitionListItem
There is not an implementation for grouped products. The items within a grouped product are managed individually.
Example usage
The following mutation adds a product to a requisition list and returns information about the products in the list.
Request:
Copied to your clipboardmutation {addProductsToRequisitionList(requisitionListUid: "Mg=="requisitionListItems: [{sku: "MS10"quantity: 1selected_options: ["Y29uZmlndXJhYmxlLzkzLzUw","Y29uZmlndXJhYmxlLzE2MC8xNjg"]}]) {requisition_list {uiditems {items {... on RequisitionListItemInterface {uidproduct {uidskuname}quantity}}}items_count}}}
Response:
Copied to your clipboard{"data": {"addProductsToRequisitionList": {"requisition_list": {"uid": "Mg==","items": {"items": [{"uid": "Mg==","product": {"uid": "MTA=","sku": "24-WB05","name": "Savvy Shoulder Tote"},"quantity": 1},{"uid": "Mw==","product": {"uid": "NTk2","sku": "MS10","name": "Logan HeatTec® Tee"},"quantity": 1}]},"items_count": 2}}}}