Skip to content

rest-api

Auto Added by WPeMatico

How to Switch Currency in Magento2

I am creating mobileApp using APIs i used my custom API to return products and used the the function that return price according to the currencycode given below is the code public function getPriceByCurrency($price) { $rate = $this->_currencyFactory->create()->load($this->apiHelper- >getStoreBaseCurrency($this->_storeId))->getAnyRate($this->_currencyCode); $itemAmount… Read More »How to Switch Currency in Magento2

Is there any API to get Products details in magento2 without Bearer Token

I want to get products By Id but it the way i am doing this doesnot return some product details in case of configurable <?php namespace VendorMobileAppModelApi; use VendorMobileAppApiProductInterface; use MagentoCatalogModelResourceModelProductCollectionFactory as ProductsCollectionFactory; use VendorMobileAppHelperData as ApiHelper; use MagentoCatalogModelCategoryFactory; use… Read More »Is there any API to get Products details in magento2 without Bearer Token