{"data":{"id":"MDVA-44147","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where a GraphQL request doesn't return Requisition Lists.","categories":["GraphQL"],"components":["magento/module-requisition-list-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-14/mdva-44147-graphql-request-doesnt-return-requisition-lists","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-14/mdva-44147-graphql-request-doesnt-return-requisition-lists.md","blobSha":"085170185feb95ac7b66e122b29d8ae6636b23f2","description":"GraphQL request doesn't return Requisition Lists.","stepsToReproduce":"1. Go to Store > Settings > Configuration > General > B2B Features and enable Requisition List. 1. Log in as a customer and add a product to the Requisition List. 1. Create a Customer Token. <pre> <code class=\"language-graphql\"> mutation { generateCustomerToken( email: \"test@gmail.com\" password: \"xxxxxxxx\" ) { token } } </code> </pre> 1. Use the following query to retrieve all the Requisition Lists from the customer. Use the Authorization header with the value Bearer <customer_token>. Refer to the Customer Query article in our developer documentation for more information. Request: <pre> <code class=\"language-graphql\"> query { customer { requisition_lists( pageSize: 20 ) { items { uid name description items(pageSize: 20) { items { uid product { uid name sku __typename } quantity } total_pages } } total_count } } } </code> </pre> Response: <pre> <code class=\"language-graphql\"> { \"data\": { \"customer\": { \"requisition_lists\": { \"items\": [ { \"uid\": \"MQ==\", \"name\": \"Name\", \"description\": \"Description\", \"items\": { \"items\": [ { \"uid\": \"MQ==\", \"product\": { \"uid\": \"MQ==\", \"name\": \"Simple 01\", \"sku\": \"s00001\", \"__typename\": \"SimpleProduct\" }, \"quantity\": 1 } ], \"total_pages\": 1 } } ], \"total_count\": 1 } } } } </code> </pre> 1. Copy the UID of any item from the list returned (MQ==) and use the following query to get the list filtered by the UID. <pre> <code class=\"language-graphql\"> query { customer { requisition_lists( pageSize: 20, filter: { uids: { eq: \"MQ==\" } } ) { items { uid name description items(pageSize: 20) { items { uid product { uid name sku __typename } quantity } total_pages } } total_count } } } </code> </pre>","introducedInQpt":"1.1.14","createdFor":["2.4.3-p1"],"documentedRange":"2.4.2 - 2.4.4","scheduledFixRelease":"2.4.5"},"files":[{"package":"magento/magento2-b2b-base","constraint":">=1.3.1 <1.3.4","path":"patches/commerce/MDVA-44147_1.3.2-p1.patch","blobSha":"ed088666ea98f3fdd3169bede77e228a21dff30c","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/MDVA-44147_1.3.2-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-requisition-list-graph-ql/Model/RequisitionList/GetRequisitionList.php","change":"modified","package":"magento/module-requisition-list-graph-ql"}],"packages":["magento/module-requisition-list-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4","2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4","2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch MDVA-44147 details"}