Need to get customer order list from Rest API The 2019 Stack Overflow Developer Survey Results Are InHow can we get customer orders history with rest APIHow to get order list of customer using graphql?Get tax class ID by tax rate with REST APIMagento 2: Get Order Info From InvoiceAPI call and observer on customer creationHow to allow REST API calls from localhost or 127.0.0.1?How to get price items of bundle product in order API-REST Magento 2.3?Magento 2.3 - How to Get product-salable-quantity using REST API?Magento 2.3. Need to grant access to customer for using some APIsInventory management after order created via rest API in Magento 2.x version ( without cart)Magento 2.3 Rest API: Error message for each cart item

How to make payment on the internet without leaving a money trail?

Why is Grand Jury testimony secret?

What is the use of option -o in the useradd command?

Inflated grade on resume at previous job, might former employer tell new employer?

If the Wish spell is used to duplicate the effect of Simulacrum, are existing duplicates destroyed?

Why is it "Tumoren" and not "Tumore"?

Which Sci-Fi work first showed weapon of galactic-scale mass destruction?

What is a mixture ratio of propellant?

JSON.serialize: is it possible to suppress null values of a map?

What is the motivation for a law requiring 2 parties to consent for recording a conversation

Inversion Puzzle

Carnot-Caratheodory metric

Why do UK politicians seemingly ignore opinion polls on Brexit?

Extreme, unacceptable situation and I can't attend work tomorrow morning

Where to refill my bottle in India?

Access elements in std::string where positon of string is greater than its size

I looked up a future colleague on linkedin before I started a job. I told my colleague about it and he seemed surprised. Should I apologize?

Does duplicating a spell with wish count as casting that spell?

In microwave frequencies, do you use a circulator when you need a (near) perfect diode?

How long do I have to send payment?

"To split hairs" vs "To be pedantic"

Could JWST stay at L2 "forever"?

Does a dangling wire really electrocute me if I'm standing in water?

Dual Citizen. Exited the US on Italian passport recently



Need to get customer order list from Rest API



The 2019 Stack Overflow Developer Survey Results Are InHow can we get customer orders history with rest APIHow to get order list of customer using graphql?Get tax class ID by tax rate with REST APIMagento 2: Get Order Info From InvoiceAPI call and observer on customer creationHow to allow REST API calls from localhost or 127.0.0.1?How to get price items of bundle product in order API-REST Magento 2.3?Magento 2.3 - How to Get product-salable-quantity using REST API?Magento 2.3. Need to grant access to customer for using some APIsInventory management after order created via rest API in Magento 2.x version ( without cart)Magento 2.3 Rest API: Error message for each cart item



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















First I tried this endpoint /rest/V1/orders to get list of all orders history for a customer but got this error:



{
"message": "The consumer isn't authorized to access %resources.",
"parameters":
"resources": "Magento_Sales::sales"



Then I have used custom endpoint as mentioned in this link How can we get customer orders history with rest API



like that:



 <?xml version="1.0"?>
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
<route url="/V1/orders/custom" method="GET">
<service class="MagentoSalesApiOrderRepositoryInterface" method="getList"/>
<resources>
<resource ref="self"/>
</resources>
</route>
</routes>


Still I'm getting the same error. I have followed this method for other APIs also and they are working fine. Just this endpoint is not working. Please help!










share|improve this question




























    1















    First I tried this endpoint /rest/V1/orders to get list of all orders history for a customer but got this error:



    {
    "message": "The consumer isn't authorized to access %resources.",
    "parameters":
    "resources": "Magento_Sales::sales"



    Then I have used custom endpoint as mentioned in this link How can we get customer orders history with rest API



    like that:



     <?xml version="1.0"?>
    <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
    <route url="/V1/orders/custom" method="GET">
    <service class="MagentoSalesApiOrderRepositoryInterface" method="getList"/>
    <resources>
    <resource ref="self"/>
    </resources>
    </route>
    </routes>


    Still I'm getting the same error. I have followed this method for other APIs also and they are working fine. Just this endpoint is not working. Please help!










    share|improve this question
























      1












      1








      1


      1






      First I tried this endpoint /rest/V1/orders to get list of all orders history for a customer but got this error:



      {
      "message": "The consumer isn't authorized to access %resources.",
      "parameters":
      "resources": "Magento_Sales::sales"



      Then I have used custom endpoint as mentioned in this link How can we get customer orders history with rest API



      like that:



       <?xml version="1.0"?>
      <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
      <route url="/V1/orders/custom" method="GET">
      <service class="MagentoSalesApiOrderRepositoryInterface" method="getList"/>
      <resources>
      <resource ref="self"/>
      </resources>
      </route>
      </routes>


      Still I'm getting the same error. I have followed this method for other APIs also and they are working fine. Just this endpoint is not working. Please help!










      share|improve this question














      First I tried this endpoint /rest/V1/orders to get list of all orders history for a customer but got this error:



      {
      "message": "The consumer isn't authorized to access %resources.",
      "parameters":
      "resources": "Magento_Sales::sales"



      Then I have used custom endpoint as mentioned in this link How can we get customer orders history with rest API



      like that:



       <?xml version="1.0"?>
      <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
      <route url="/V1/orders/custom" method="GET">
      <service class="MagentoSalesApiOrderRepositoryInterface" method="getList"/>
      <resources>
      <resource ref="self"/>
      </resources>
      </route>
      </routes>


      Still I'm getting the same error. I have followed this method for other APIs also and they are working fine. Just this endpoint is not working. Please help!







      magento2.3






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 6 hours ago









      Hasan IlyasHasan Ilyas

      132




      132




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269424%2fneed-to-get-customer-order-list-from-rest-api%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269424%2fneed-to-get-customer-order-list-from-rest-api%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

          Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр

          Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»