deleteRequisitionList mutation
The deleteRequisitionList
mutation deletes a requisition list of the logged in customer. The response can include any remaining requisition lists.
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 {deleteRequisitionList(requisitionListUid: ID!) {deleteRequisitionListOutput}}
Reference
The deleteRequisitionList
reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example deletes a requisition list.
Request:
Copied to your clipboardmutation {deleteRequisitionList(requisitionListUid: "Mw==") {statusrequisition_lists {total_countitems {uidname}}}}
Response:
Copied to your clipboard{"data": {"deleteRequisitionList": {"status": true,"requisition_lists": {"total_count": 1"items": [{"uid": "Mg==","name": "Frequently Ordered Products"}]}}}}