2

I am using Rest API to reset password of customer, i have already passed websiteId for different store but when i am getting reset password email, it is coming of default store not the store i have passed, can anyone let me know what should i do? Please find below screenshots for your reference:

postman api email

1 Answer 1

1

You have to use different endpoint, please read this answer, it will show you how we can use the correct endpoint URL, but in general you have to put the store view code before /V!

{store code}/V1/...

How to add a product to a specific website in Magento 2 codebase via api

5
  • I have used your instruction and tried to do it but i am getting following error in response api: Error: { "message": "Invalid value of \"%value\" provided for the %fieldName field.", "parameters": { "fieldName": "regionId", "value": "3" } } API URL:127.0.0.1/bannerbuzzmagento2/rest/ca/V1/customers/password NOTE: ca is my storeview code. Sep 11, 2018 at 4:52
  • can you post here the json ? Sep 11, 2018 at 19:46
  • Here it is: { "message": "Invalid value of \"%value\" provided for the %fieldName field.", "parameters": { "fieldName": "regionId", "value": "3" } } Sep 12, 2018 at 4:12
  • not the response json but the requested json , no need for the real email just the structure Sep 12, 2018 at 4:21
  • Here is request json: { "email": "[email protected]", "template": "email_reminder", "websiteId": 2 } Sep 12, 2018 at 4:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.