POST /rest/V1/carts/cartId/items isn't working when logged as customerHow to get sales with rest API in magento 2?Authorization failed during category creation using REST APIGetting error in Rest Api guest-cart. [POST] V1/guest-carts/cart-id/itemsGET V1/guest-carts/cartId/items not working?MAGENTO 2 REST API Checkout payment using credit cardREST API endpoint v1/carts/cartId/items always returns error messageMagento 2 rest API not working in online serverUnable to get salesorders and Customers From Magento 2.2 using REST APIMagento2 REST API - Cannot create cart/quote for customerConsumer is not authorized to access %resources Magento_Sales::sales
What causes the sudden spool-up sound from an F-16 when enabling afterburner?
Domain expired, GoDaddy holds it and is asking more money
Are white and non-white police officers equally likely to kill black suspects?
What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?
Finding files for which a command fails
Is there a name of the flying bionic bird?
Denied boarding due to overcrowding, Sparpreis ticket. What are my rights?
Could a US political party gain complete control over the government by removing checks & balances?
Extreme, but not acceptable situation and I can't start the work tomorrow morning
Where to refill my bottle in India?
Are cabin dividers used to "hide" the flex of the airplane?
Why airport relocation isn't done gradually?
What to wear for invited talk in Canada
Manga about a female worker who got dragged into another world together with this high school girl and she was just told she's not needed anymore
Can a planet have a different gravitational pull depending on its location in orbit around its sun?
Why is my log file so massive? 22gb. I am running log backups
Can I find out the caloric content of bread by dehydrating it?
Crop image to path created in TikZ?
How can I plot a Farey diagram?
aging parents with no investments
If a centaur druid Wild Shapes into a Giant Elk, do their Charge features stack?
Need help identifying/translating a plaque in Tangier, Morocco
A poker game description that does not feel gimmicky
How to answer pointed "are you quitting" questioning when I don't want them to suspect
POST /rest/V1/carts/cartId/items isn't working when logged as customer
How to get sales with rest API in magento 2?Authorization failed during category creation using REST APIGetting error in Rest Api guest-cart. [POST] V1/guest-carts/cart-id/itemsGET V1/guest-carts/cartId/items not working?MAGENTO 2 REST API Checkout payment using credit cardREST API endpoint v1/carts/cartId/items always returns error messageMagento 2 rest API not working in online serverUnable to get salesorders and Customers From Magento 2.2 using REST APIMagento2 REST API - Cannot create cart/quote for customerConsumer is not authorized to access %resources Magento_Sales::sales
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm trying to use all the /carts/cartId
endpoint list in the magento rest API documentation with the cart ID I've recevied on POST /rest/V1/carts/mine
but every time I'm getting a error
"message": "The consumer isn't authorized to access %resources.",
"parameters":
"resources": "Magento_Cart::manage"
magento2 customer api rest
add a comment |
I'm trying to use all the /carts/cartId
endpoint list in the magento rest API documentation with the cart ID I've recevied on POST /rest/V1/carts/mine
but every time I'm getting a error
"message": "The consumer isn't authorized to access %resources.",
"parameters":
"resources": "Magento_Cart::manage"
magento2 customer api rest
can you post how you are posting data to the API call? It should be an error in your consumer token
– magefms
10 hours ago
add a comment |
I'm trying to use all the /carts/cartId
endpoint list in the magento rest API documentation with the cart ID I've recevied on POST /rest/V1/carts/mine
but every time I'm getting a error
"message": "The consumer isn't authorized to access %resources.",
"parameters":
"resources": "Magento_Cart::manage"
magento2 customer api rest
I'm trying to use all the /carts/cartId
endpoint list in the magento rest API documentation with the cart ID I've recevied on POST /rest/V1/carts/mine
but every time I'm getting a error
"message": "The consumer isn't authorized to access %resources.",
"parameters":
"resources": "Magento_Cart::manage"
magento2 customer api rest
magento2 customer api rest
asked 12 hours ago
maru3lmaru3l
334
334
can you post how you are posting data to the API call? It should be an error in your consumer token
– magefms
10 hours ago
add a comment |
can you post how you are posting data to the API call? It should be an error in your consumer token
– magefms
10 hours ago
can you post how you are posting data to the API call? It should be an error in your consumer token
– magefms
10 hours ago
can you post how you are posting data to the API call? It should be an error in your consumer token
– magefms
10 hours ago
add a comment |
1 Answer
1
active
oldest
votes
The error message implies that the customer's token might be expired or wrongly defined in Authorization
key.
With that you can try to:
- Generate new customer access token using
/V1/integration/customer/token
endpoint and use the new access token in the Authorization key of your API POST request.
add a comment |
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%2f269229%2fpost-rest-v1-carts-cartid-items-isnt-working-when-logged-as-customer%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The error message implies that the customer's token might be expired or wrongly defined in Authorization
key.
With that you can try to:
- Generate new customer access token using
/V1/integration/customer/token
endpoint and use the new access token in the Authorization key of your API POST request.
add a comment |
The error message implies that the customer's token might be expired or wrongly defined in Authorization
key.
With that you can try to:
- Generate new customer access token using
/V1/integration/customer/token
endpoint and use the new access token in the Authorization key of your API POST request.
add a comment |
The error message implies that the customer's token might be expired or wrongly defined in Authorization
key.
With that you can try to:
- Generate new customer access token using
/V1/integration/customer/token
endpoint and use the new access token in the Authorization key of your API POST request.
The error message implies that the customer's token might be expired or wrongly defined in Authorization
key.
With that you can try to:
- Generate new customer access token using
/V1/integration/customer/token
endpoint and use the new access token in the Authorization key of your API POST request.
answered 7 hours ago
magefmsmagefms
2,5612426
2,5612426
add a comment |
add a comment |
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%2f269229%2fpost-rest-v1-carts-cartid-items-isnt-working-when-logged-as-customer%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
can you post how you are posting data to the API call? It should be an error in your consumer token
– magefms
10 hours ago