I need to fetch the stores addresses using REST API.
We already have storeConfigs but this doesn't return the addresses.
GET /V1/store/storeConfigs
How can we get the address mentioned in the Store Information tab. Also the Address is Website scoped but I need Store View based.
Thanks in advance.
Best Answer
For your requirement then you need to build a Rest API yourself.
API points like:
webapi.xml Code
Interface Class for getting Single store view.
And code
Interface Class for getting all store view:
And code
Model Class for the interface class SystemconfigManagement:
Code:
Model Class for the interface class SystemconfigListManagementInterface:
Code:
di.xml
TEST SAMPLE:
This method support one parameter:
All store Information API Test Sample: