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;








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

















  • 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










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 5 hours ago









        magefmsmagefms

        2,5402426




        2,5402426



























            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

            Disable / Remove link to Product Items in Cart 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?How can I limit products that can be bought / added to cart?Remove item from cartHide “Add to Cart” button if specific products are already in cart“Prettifying” the custom options in cart pageCreate link in cart sidebar to view all added items After limit reachedLink products together in checkout/cartHow to Get product from cart and add it againHide action-edit on cart page if simple productRemoving Cart items - ObserverRemove wishlist items when added to cart

            Helsingin valtaus Sisällysluettelo Taustaa | Yleistä sotatoimista | Osapuolet | Taistelut Helsingin ympäristössä | Punaisten antautumissuunnitelma | Taistelujen kulku Helsingissä | Valtauksen jälkeen | Tappiot | Muistaminen | Kirjallisuutta | Lähteet | Aiheesta muualla | NavigointivalikkoTeoksen verkkoversioTeoksen verkkoversioGoogle BooksSisällissota Helsingissä päättyi tasan 95 vuotta sittenSaksalaisten ylivoima jyräsi punaisen HelsinginSuomalaiset kuvaavat sotien jälkiä kaupungeissa – katso kuvat ja tarinat tutuilta kulmiltaHelsingin valtaus 90 vuotta sittenSaksalaiset valtasivat HelsinginHyökkäys HelsinkiinHelsingin valtaus 12.–13.4. 1918Saksalaiset käyttivät ihmiskilpiä Helsingin valtauksessa 1918Teoksen verkkoversioTeoksen verkkoversioSaksalaiset hyökkäävät Etelä-SuomeenTaistelut LeppävaarassaSotilaat ja taistelutLeppävaara 1918 huhtikuussa. KapinatarinaHelsingin taistelut 1918Saksalaisten voitonparaati HelsingissäHelsingin valtausta juhlittiinSaksalaisten Helsinki vuonna 1918Helsingin taistelussa kaatuneet valkokaartilaisetHelsinkiin haudatut taisteluissa kaatuneet punaiset12.4.1918 Helsingin valtauksessa saksalaiset apujoukot vapauttavat kaupunginVapaussodan muistomerkkejä Helsingissä ja pääkaupunkiseudullaCrescendo / Vuoden 1918 Kansalaissodan uhrien muistomerkkim

            Adjektiivitarina Tarinan tekeminen | Esimerkki: ennen | Esimerkki: jälkeen | Navigointivalikko