Skip to content

Magento CLI 2.3.1 | API | customer delete #36921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
salehawal opened this issue Feb 26, 2023 · 6 comments
Closed

Magento CLI 2.3.1 | API | customer delete #36921

salehawal opened this issue Feb 26, 2023 · 6 comments

Comments

@salehawal
Copy link

Description

how can i delete a user from api, i have magento 2.3.1?

Expected behavior

use "/pub/rest/default/V1/customers/{customerId}" api endpoint to delete user

Benefits

allow user to remove their account if they want

Additional information

i tried this end point : "/pub/rest/default/V1/customers/{customerId}" did not work?

Release note

No response

@m2-assistant
Copy link

m2-assistant bot commented Feb 26, 2023

Hi @salehawal. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

@mrkhoa99
Copy link
Contributor

mrkhoa99 commented Feb 26, 2023

@salehawal please share your full api data (with curl command if it's possible). Remember that your Access Token must have the permission to delete customer.

allow user to remove their account if they want

Please be careful when allowing customer to delete their account by themself. By default, customer is not able to delete their account with customer access token. You must create an Integration to generate Access Token.

@salehawal
Copy link
Author

@mrkhoa99 what i want is to provide our mobile developer with api documentation for magento 2.3.1 to allow him to enable the user to delete his profile if he wish to do so, why because apple store rejected our latest push to store because this future must be added

now i cant to know what is the correct way over api and if not supported because of old version can you recommend a alternative way or module to enable this api call to delete customer

@mrkhoa99
Copy link
Contributor

@salehawal I think you must create a new custom api for this case.

@salehawal
Copy link
Author

@salehawal I think you must create a new custom api for this case.

That's what I hope to find a alternative way for 🙄

@engcom-Bravo
Copy link
Contributor

Hi @salehawal,

Thanks for your reporting and collaboration.

We have tried to reproduce the issue in Latest 2.4-develop instance and we are not able to reproduce the issue.Kindly refer the screenshots.

Image Image

We are able to delete the customer successfully.Hence we are closing this issue.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for Grooming
Development

No branches or pull requests

3 participants