I'm writing an module that provide a new API endpoint for Magento 2. Can anyone guide on how to write an API endpoint that I can fetch the sales report of last 1 year ?
-
Elaborate your question with tested code– Ronak ChauhanJan 4, 2017 at 6:54
-
If you want to use core APIs then Magento already provide list of APIs for sales devdocs.magento.com/guides/v2.0/rest/list.html– Ronak ChauhanJan 4, 2017 at 6:56
-
Check Magento documentation in order to create a custom API. Then check a sales report repository in order to fetch data.– Franck GarnierJan 4, 2017 at 7:30
Add a comment
|