sharedRequisitionList query
This query is part of the B2B Storefront Compatibility Package and is only available on Adobe Commerce as a Cloud Service.
The sharedRequisitionList query uses a token to retrieve a shared requisition list. The response can contain the sender_name and requisition_list object.
Syntax
Copied to your clipboard{sharedRequisitionList(token: String!): SharedRequisitionListOutput}
Example usage
The following example opens a shared requisition list by specifying the shared token.
Request:
Copied to your clipboardquery SharedRequisitionList {sharedRequisitionList(token: "qEJD2aUhmYnf1jNoaOtlo7XwBP8BRof5GhF0L5kbdJxYMZ13OlFvy2VFy33NnUCp") {sender_namerequisition_list {descriptionnameuiditems(currentPage: 1, pageSize: 20) {total_pagesitems {quantityskuuidproduct {attribute_set_idname}}page_info {current_pagepage_sizetotal_pages}}}}}
Response:
Copied to your clipboard{"data": {"sharedRequisitionList": {"sender_name": "Jane","requisition_list": {"description": "Test RL sharing","name": "Shared RL","uid": "OTc5","items": {"total_pages": 1,"items": [{"quantity": 2,"sku": "Augusta","uid": "NDEw","product": {"attribute_set_id": 4,"name": "Augusta"}}],"page_info": {"current_page": 1,"page_size": 20,"total_pages": 1}}}}}}
