سؤال

I need to retrieve categories and child-category list per store. I have two store have store code grocery and fruit.

هل كانت مفيدة؟

المحلول

Method :GET 
  URL: http://yourdomain/index.php/rest/store-code/V1/categories \
  -H 'authorization: Bearer token--string--' \

for store grocery call api

Method :GET 
  URL: http://yourdomain/index.php/rest/grocery/V1/categories \
  -H 'authorization: Bearer token--string--' \

for store fruit call api

Method :GET 
  URL: http://yourdomain/index.php/rest/fruit/V1/categories \
  -H 'authorization: Bearer token--string--' \
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top