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;
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
add a comment |
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
add a comment |
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
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
magento2.3
asked 6 hours ago
Hasan IlyasHasan Ilyas
132
132
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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