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:
1 Answer
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. Commented Sep 11, 2018 at 4:52
-
-
Here it is: { "message": "Invalid value of \"%value\" provided for the %fieldName field.", "parameters": { "fieldName": "regionId", "value": "3" } } Commented Sep 12, 2018 at 4:12
-
not the response json but the requested json , no need for the real email just the structure Commented Sep 12, 2018 at 4:21
-
Here is request json: { "email": "[email protected]", "template": "email_reminder", "websiteId": 2 } Commented Sep 12, 2018 at 4:27