DELETE V1/addresses/:addressId - This Rest API is not working with Customer TokenAdd new customer address REST API : Magento 2Unable to get salesorders and Customers From Magento 2.2 using REST APIMagento 2.2.3 - Problem connecting via REST API (Shipworks)Neither Token nor Oauth API Authentication are working Magento 2.2.3Magento 2 token integration errorMagento 2 rest API - How to Manage API Authentication Lifecycle on Mobile Devices Application?MagentoSales resource could not access by customer tokenMagento 2 Rest auth for different website idsMagento 2 Customer Rest Api Token error for some users [weird problem]How can i Update Add and Delete user address in Application using PUT http://Base URL/rest/V1/customers/me?Accessing Admin data from Magento 2.1 Rest API

Does the attack bonus from a Masterwork weapon stack with the attack bonus from Masterwork ammunition?

Light propagating through a sound wave

Have the tides ever turned twice on any open problem?

Generic TVP tradeoffs?

Can other pieces capture a threatening piece and prevent a checkmate?

Deletion of copy-ctor & copy-assignment - public, private or protected?

How can an organ that provides biological immortality be unable to regenerate?

Why didn't Héctor fade away after this character died in the movie Coco?

Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?

Usage and meaning of "up" in "...worth at least a thousand pounds up in London"

Existence of a celestial body big enough for early civilization to be thought of as a second moon

Fewest number of steps to reach 200 using special calculator

Should I be concerned about student access to a test bank?

Do native speakers use "ultima" and "proxima" frequently in spoken English?

Can a wizard cast a spell during their first turn of combat if they initiated combat by releasing a readied spell?

Wrapping homogeneous Python objects

Would it be believable to defy demographics in a story?

Hausdorff dimension of the boundary of fibres of Lipschitz maps

How to terminate ping <dest> &

Is there a hypothetical scenario that would make Earth uninhabitable for humans, but not for (the majority of) other animals?

What should I install to correct "ld: cannot find -lgbm and -linput" so that I can compile a Rust program?

In Aliens, how many people were on LV-426 before the Marines arrived​?

Help rendering a complicated sum/product formula

Recruiter wants very extensive technical details about all of my previous work



DELETE V1/addresses/:addressId - This Rest API is not working with Customer Token


Add new customer address REST API : Magento 2Unable to get salesorders and Customers From Magento 2.2 using REST APIMagento 2.2.3 - Problem connecting via REST API (Shipworks)Neither Token nor Oauth API Authentication are working Magento 2.2.3Magento 2 token integration errorMagento 2 rest API - How to Manage API Authentication Lifecycle on Mobile Devices Application?MagentoSales resource could not access by customer tokenMagento 2 Rest auth for different website idsMagento 2 Customer Rest Api Token error for some users [weird problem]How can i Update Add and Delete user address in Application using PUT http://Base URL/rest/V1/customers/me?Accessing Admin data from Magento 2.1 Rest API













3















delete /V1/addresses/addressId


This is the Delete Address REST API in Magento 2.



It works with admin token , but not with customer token.



I think it should be working with customer token as customer should have rights to delete his own addresses stored.



This API has access permission for Resource : Magento_Customer::manage



This resource permission should be working with customer token, isn't it ?



Does anybody having the same issue ?










share|improve this question
















bumped to the homepage by Community 8 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    3















    delete /V1/addresses/addressId


    This is the Delete Address REST API in Magento 2.



    It works with admin token , but not with customer token.



    I think it should be working with customer token as customer should have rights to delete his own addresses stored.



    This API has access permission for Resource : Magento_Customer::manage



    This resource permission should be working with customer token, isn't it ?



    Does anybody having the same issue ?










    share|improve this question
















    bumped to the homepage by Community 8 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      3












      3








      3








      delete /V1/addresses/addressId


      This is the Delete Address REST API in Magento 2.



      It works with admin token , but not with customer token.



      I think it should be working with customer token as customer should have rights to delete his own addresses stored.



      This API has access permission for Resource : Magento_Customer::manage



      This resource permission should be working with customer token, isn't it ?



      Does anybody having the same issue ?










      share|improve this question
















      delete /V1/addresses/addressId


      This is the Delete Address REST API in Magento 2.



      It works with admin token , but not with customer token.



      I think it should be working with customer token as customer should have rights to delete his own addresses stored.



      This API has access permission for Resource : Magento_Customer::manage



      This resource permission should be working with customer token, isn't it ?



      Does anybody having the same issue ?







      magento-2.1.7 rest-api






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 17 '17 at 13:03









      Raghu

      1,2811520




      1,2811520










      asked Aug 17 '17 at 12:34









      Vaibhav MunjparaVaibhav Munjpara

      265




      265





      bumped to the homepage by Community 8 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 8 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Customer token CANNOT access customerAddressRepositoryV1 so your API doesn't work on customer token. This is how swagger looks after inserting a customer token:
          enter image description here



          If customer wants to modify/delete customer address, we can use PUT /V1/customer/me. Although it doesn't list on swagger(Confirmed: it's a bug), it tested and successful on my 2.1.7 EE + POSTMAN. Here is a sample JSON for using PUT /V1/customer/me:




          "customer":
          "email": "your_email",
          "firstname": "your_firstname",
          "lastname": "your_lastname",
          "website_id": 1,
          "addresses": [

          ],
          ...




          Of course, you have to add token on header.






          share|improve this answer




















          • 1





            Thanks for your efforts.. I found that if there is a resource Magento_Customer::manage applied on webapi.xml , it indicates that we need to use admin token. And if Magento_Customer::customer resource is applied in any API, we can use customer token.

            – Vaibhav Munjpara
            Aug 20 '17 at 7:18











          • So i needed to use admin token. But I think my question can be considered as an enhancement for magento team. as customer should have rights to delete his own address with customer token. Thanks again...

            – Vaibhav Munjpara
            Aug 20 '17 at 7:20











          • Yes I think it should be an enhancement on it. BTW if my workaround works please accept my answer :)

            – PY Yick
            Aug 20 '17 at 10:49










          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%2f189504%2fdelete-v1-addresses-addressid-this-rest-api-is-not-working-with-customer-toke%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














          Customer token CANNOT access customerAddressRepositoryV1 so your API doesn't work on customer token. This is how swagger looks after inserting a customer token:
          enter image description here



          If customer wants to modify/delete customer address, we can use PUT /V1/customer/me. Although it doesn't list on swagger(Confirmed: it's a bug), it tested and successful on my 2.1.7 EE + POSTMAN. Here is a sample JSON for using PUT /V1/customer/me:




          "customer":
          "email": "your_email",
          "firstname": "your_firstname",
          "lastname": "your_lastname",
          "website_id": 1,
          "addresses": [

          ],
          ...




          Of course, you have to add token on header.






          share|improve this answer




















          • 1





            Thanks for your efforts.. I found that if there is a resource Magento_Customer::manage applied on webapi.xml , it indicates that we need to use admin token. And if Magento_Customer::customer resource is applied in any API, we can use customer token.

            – Vaibhav Munjpara
            Aug 20 '17 at 7:18











          • So i needed to use admin token. But I think my question can be considered as an enhancement for magento team. as customer should have rights to delete his own address with customer token. Thanks again...

            – Vaibhav Munjpara
            Aug 20 '17 at 7:20











          • Yes I think it should be an enhancement on it. BTW if my workaround works please accept my answer :)

            – PY Yick
            Aug 20 '17 at 10:49















          0














          Customer token CANNOT access customerAddressRepositoryV1 so your API doesn't work on customer token. This is how swagger looks after inserting a customer token:
          enter image description here



          If customer wants to modify/delete customer address, we can use PUT /V1/customer/me. Although it doesn't list on swagger(Confirmed: it's a bug), it tested and successful on my 2.1.7 EE + POSTMAN. Here is a sample JSON for using PUT /V1/customer/me:




          "customer":
          "email": "your_email",
          "firstname": "your_firstname",
          "lastname": "your_lastname",
          "website_id": 1,
          "addresses": [

          ],
          ...




          Of course, you have to add token on header.






          share|improve this answer




















          • 1





            Thanks for your efforts.. I found that if there is a resource Magento_Customer::manage applied on webapi.xml , it indicates that we need to use admin token. And if Magento_Customer::customer resource is applied in any API, we can use customer token.

            – Vaibhav Munjpara
            Aug 20 '17 at 7:18











          • So i needed to use admin token. But I think my question can be considered as an enhancement for magento team. as customer should have rights to delete his own address with customer token. Thanks again...

            – Vaibhav Munjpara
            Aug 20 '17 at 7:20











          • Yes I think it should be an enhancement on it. BTW if my workaround works please accept my answer :)

            – PY Yick
            Aug 20 '17 at 10:49













          0












          0








          0







          Customer token CANNOT access customerAddressRepositoryV1 so your API doesn't work on customer token. This is how swagger looks after inserting a customer token:
          enter image description here



          If customer wants to modify/delete customer address, we can use PUT /V1/customer/me. Although it doesn't list on swagger(Confirmed: it's a bug), it tested and successful on my 2.1.7 EE + POSTMAN. Here is a sample JSON for using PUT /V1/customer/me:




          "customer":
          "email": "your_email",
          "firstname": "your_firstname",
          "lastname": "your_lastname",
          "website_id": 1,
          "addresses": [

          ],
          ...




          Of course, you have to add token on header.






          share|improve this answer















          Customer token CANNOT access customerAddressRepositoryV1 so your API doesn't work on customer token. This is how swagger looks after inserting a customer token:
          enter image description here



          If customer wants to modify/delete customer address, we can use PUT /V1/customer/me. Although it doesn't list on swagger(Confirmed: it's a bug), it tested and successful on my 2.1.7 EE + POSTMAN. Here is a sample JSON for using PUT /V1/customer/me:




          "customer":
          "email": "your_email",
          "firstname": "your_firstname",
          "lastname": "your_lastname",
          "website_id": 1,
          "addresses": [

          ],
          ...




          Of course, you have to add token on header.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 21 '17 at 3:29

























          answered Aug 18 '17 at 3:35









          PY YickPY Yick

          1,757821




          1,757821







          • 1





            Thanks for your efforts.. I found that if there is a resource Magento_Customer::manage applied on webapi.xml , it indicates that we need to use admin token. And if Magento_Customer::customer resource is applied in any API, we can use customer token.

            – Vaibhav Munjpara
            Aug 20 '17 at 7:18











          • So i needed to use admin token. But I think my question can be considered as an enhancement for magento team. as customer should have rights to delete his own address with customer token. Thanks again...

            – Vaibhav Munjpara
            Aug 20 '17 at 7:20











          • Yes I think it should be an enhancement on it. BTW if my workaround works please accept my answer :)

            – PY Yick
            Aug 20 '17 at 10:49












          • 1





            Thanks for your efforts.. I found that if there is a resource Magento_Customer::manage applied on webapi.xml , it indicates that we need to use admin token. And if Magento_Customer::customer resource is applied in any API, we can use customer token.

            – Vaibhav Munjpara
            Aug 20 '17 at 7:18











          • So i needed to use admin token. But I think my question can be considered as an enhancement for magento team. as customer should have rights to delete his own address with customer token. Thanks again...

            – Vaibhav Munjpara
            Aug 20 '17 at 7:20











          • Yes I think it should be an enhancement on it. BTW if my workaround works please accept my answer :)

            – PY Yick
            Aug 20 '17 at 10:49







          1




          1





          Thanks for your efforts.. I found that if there is a resource Magento_Customer::manage applied on webapi.xml , it indicates that we need to use admin token. And if Magento_Customer::customer resource is applied in any API, we can use customer token.

          – Vaibhav Munjpara
          Aug 20 '17 at 7:18





          Thanks for your efforts.. I found that if there is a resource Magento_Customer::manage applied on webapi.xml , it indicates that we need to use admin token. And if Magento_Customer::customer resource is applied in any API, we can use customer token.

          – Vaibhav Munjpara
          Aug 20 '17 at 7:18













          So i needed to use admin token. But I think my question can be considered as an enhancement for magento team. as customer should have rights to delete his own address with customer token. Thanks again...

          – Vaibhav Munjpara
          Aug 20 '17 at 7:20





          So i needed to use admin token. But I think my question can be considered as an enhancement for magento team. as customer should have rights to delete his own address with customer token. Thanks again...

          – Vaibhav Munjpara
          Aug 20 '17 at 7:20













          Yes I think it should be an enhancement on it. BTW if my workaround works please accept my answer :)

          – PY Yick
          Aug 20 '17 at 10:49





          Yes I think it should be an enhancement on it. BTW if my workaround works please accept my answer :)

          – PY Yick
          Aug 20 '17 at 10:49

















          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%2f189504%2fdelete-v1-addresses-addressid-this-rest-api-is-not-working-with-customer-toke%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рвиправивши або дописавши її