5

You need to use "search" instead of "searchs". It's typo and also you need to specify search criteria fields. Execute this below URL in your postman {baseurl}/rest/V1/cmsPage/search?searchCriteria[sortOrders][0][field]=identifier&searchCriteria[sortOrders][0][direction]=asc


3

hi Please try below code for generate Invoice programatically $orderId = 31; //order id for which want to create invoice $order = $this->_orderRepository->get($orderId); if($order->canInvoice()) { $itemsArray = ['80'=>2]; //here 80 is order item id and 2 is it's quantity to be invoice $...


2

The \Magento\Customer\Model\ResourceModel\Customer\Collection class has no method setWebsiteId. If you want to filter customer collection by website id you must set website_id as a filter field: /** @var \Magento\Customer\Model\ResourceModel\Customer\Collection $customerCollection */ $customer = $customerCollection->addFilter('website_id', $websiteId) ...


1

You need to create plugin in di.xml inside etc/webapi_rest folder to call plugin only in REST API. Example : app/code/Vendor/Module/etc/webrest_api/di.xml : <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...


Only top voted, non community-wiki answers of a minimum length are eligible