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
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
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.
add a comment |
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
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.
add a comment |
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
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
magento-2.1.7 rest-api
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Customer token CANNOT access customerAddressRepositoryV1
so your API doesn't work on customer token. This is how swagger looks after inserting a customer token:
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.
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
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%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
Customer token CANNOT access customerAddressRepositoryV1
so your API doesn't work on customer token. This is how swagger looks after inserting a customer token:
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.
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
add a comment |
Customer token CANNOT access customerAddressRepositoryV1
so your API doesn't work on customer token. This is how swagger looks after inserting a customer token:
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.
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
add a comment |
Customer token CANNOT access customerAddressRepositoryV1
so your API doesn't work on customer token. This is how swagger looks after inserting a customer token:
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.
Customer token CANNOT access customerAddressRepositoryV1
so your API doesn't work on customer token. This is how swagger looks after inserting a customer token:
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.
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
add a comment |
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
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%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
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