B2B feature. Learn more
deleteRequisitionListItems mutation
The deleteRequisitionListItems
mutation removes items from the specified requisition list for the logged in customer.
Use the storeConfig query with the is_requisition_list_active
attribute to determine whether requisition lists are enabled.
This mutation requires a valid customer authentication token.
Syntax
Copied to your clipboardmutation {deleteRequisitionListItems(requisitionListUid: ID!requisitionListItemUids: [ID!]!) {DeleteRequisitionListItemsOutput}}
Reference
The deleteRequisitionListItems
reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example removes the specified items from the requisition list.
Request:
Copied to your clipboardmutation {deleteRequisitionListItems(requisitionListUid: "Mg==",requisitionListItemUids: ["NA==","NQ=="]) {requisition_list {uiditems_count}}}
Response:
Copied to your clipboard{"data": {"deleteRequisitionListItems": {"requisition_list": {"uid": "Mg==","items_count": 1}}}}