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

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

  • 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. – bhargav shastri Sep 11 '18 at 4:52
  • can you post here the json ? – WISAM HAKIM Sep 11 '18 at 19:46
  • Here it is: { "message": "Invalid value of \"%value\" provided for the %fieldName field.", "parameters": { "fieldName": "regionId", "value": "3" } } – bhargav shastri Sep 12 '18 at 4:12
  • not the response json but the requested json , no need for the real email just the structure – WISAM HAKIM Sep 12 '18 at 4:21
  • Here is request json: { "email": "bhargav@commercepundit.com", "template": "email_reminder", "websiteId": 2 } – bhargav shastri Sep 12 '18 at 4:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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