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
Is there a familial term for apples and pears?
Patience, young "Padovan"
What is the command to reset a PC without deleting any files
Symmetry in quantum mechanics
How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)
Ideas for 3rd eye abilities
How do I create uniquely male characters?
COUNT(*) or MAX(id) - which is faster?
Are objects structures and/or vice versa?
What do the Banks children have against barley water?
Can I legally use front facing blue light in the UK?
Where else does the Shulchan Aruch quote an authority by name?
Is it wise to focus on putting odd beats on left when playing double bass drums?
Does the average primeness of natural numbers tend to zero?
Could a US political party gain complete control over the government by removing checks & balances?
Why do we use polarized capacitors?
Is there a name of the flying bionic bird?
What is the meaning of "of trouble" in the following sentence?
Information to fellow intern about hiring?
Is ipsum/ipsa/ipse a third person pronoun, or can it serve other functions?
Lied on resume at previous job
extract characters between two commas?
A poker game description that does not feel gimmicky
Unbreakable Formation vs. Cry of the Carnarium
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
7 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 10 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
7 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
7 hours ago
can you post how you are posting data to the API call? It should be an error in your consumer token
– magefms
7 hours ago
can you post how you are posting data to the API call? It should be an error in your consumer token
– magefms
7 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 5 hours ago
magefmsmagefms
2,5402426
2,5402426
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
7 hours ago