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;








2















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"










share|improve this question






















  • 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

















2















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"










share|improve this question






















  • 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













2












2








2








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"










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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










1 Answer
1






active

oldest

votes


















0














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.





share|improve this answer























    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%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









    0














    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.





    share|improve this answer



























      0














      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.





      share|improve this answer

























        0












        0








        0







        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.





        share|improve this answer













        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.






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 7 hours ago









        magefmsmagefms

        2,5612426




        2,5612426



























            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%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





















































            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

            Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

            How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2

            Nissan Patrol Зміст Перше покоління — 4W60 (1951-1960) | Друге покоління — 60 series (1960-1980) | Третє покоління (1980–2002) | Четверте покоління — Y60 (1987–1998) | П'яте покоління — Y61 (1997–2013) | Шосте покоління — Y62 (2010- ) | Посилання | Зноски | Навігаційне менюОфіційний український сайтТест-драйв Nissan Patrol 2010 7-го поколінняNissan PatrolКак мы тестировали Nissan Patrol 2016рвиправивши або дописавши її