New answers tagged

0 votes

Issue with ERP API PUT Request: Unintended Update of `warranty_type`

I solved my problem. It was due to the definition of 'backend' => ArrayBackend::class, while it is a string and not an array. By removing it, everything went back to normal.
Kallard's user avatar
  • 11
0 votes

Magento rest api getting error Request does not match any route

This issue appeared when I tried to automatically apply a coupon code at checkout with a button click. I have created a mixin from the Magento_SalesRule/js/view/payment/discount JS file, and simply ...
Smithee's user avatar
  • 309
2 votes

How to add custom sort like Most View and Best Selling products in API of Product List in Magento 2?

For custom sort filter through api, you need to create custom module, Create app/code/Custom/Sort/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
Mitul Vadalia's user avatar
0 votes

How to add custom sort like Most View and Best Selling products in API of Product List in Magento 2?

try it like this i think reports and analytics requires auth curl -X GET "https://your-magento-site.com/rest/V1/products?searchCriteria[sortOrders][0][field]=views&searchCriteria[sortOrders][...
Pramod's user avatar
  • 1,939
0 votes

Magento 2 : How to clear cache using REST?

Some time ago, I wrote this module https://github.com/tevtex/module-cachemanagement You can enable/disable/clean/flush caches using API. You can find the installation instructions on the github.
Ahmad's user avatar
  • 638

Top 50 recent answers are included