Skip to content

rest-api

Auto Added by WPeMatico

The consumer isn’t authorized to access %resources. Magento 2.4.5-p1 on staging environment

In the testing environment, it gives below errors, { “message”: “The consumer isn’t authorized to access %resources.”, “parameters”: { “resources”: “Magento_Sales::actions_view” }, “trace”: “#0 /var/www/html/vendor/magento/module-webapi/Controller/Rest/RequestValidator.php(68): Magento\Webapi\Controller\Rest\RequestValidator->checkPermissions()n#1 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest\RequestValidator->validate()n#2 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\RequestValidator\Interceptor->___callParent(‘validate’, Array)n#3 /var/www/html/vendor/paypal/module-braintree-core/Plugin/RestValidationPlugin.php(86): Magento\Webapi\Controller\Rest\RequestValidator\Interceptor->Magento\Framework\Interception\{closure}()n#4 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): PayPal\Braintree\Plugin\RestValidationPlugin->aroundValidate(Object(Magento\Webapi\Controller\Rest\RequestValidator\Interceptor), Object(Closure))n#5 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\RequestValidator\Interceptor->Magento\Framework\Interception\{closure}()n#6 /var/www/html/generated/code/Magento/Webapi/Controller/Rest/RequestValidator/Interceptor.php(23): Magento\Webapi\Controller\Rest\RequestValidator\Interceptor->___callPlugins(‘validate’,… Read More »The consumer isn’t authorized to access %resources. Magento 2.4.5-p1 on staging environment

Request does not match any route error Magento 2 API

I’ve created an extension , while visiting magento.com/rest/V1/wishlist/1/2 it throws error. here are my files – di.xml <?xml version=”1.0″ ?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”YourCompanyWishlistWebServiceApiWishlistManagementInterface” type=”YourCompanyWishlistWebServiceModelWishlistManagement” /> </config> webapi.xml <?xml version=”1.0″ ?> <routes xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Webapi:etc/webapi.xsd”> <route url=”/V1/wishlist/:customerId” method=”GET”> <service class=”YourCompanyWishlistWebServiceApiWishlistManagementInterface”… Read More »Request does not match any route error Magento 2 API

Professional Couriers Order Tracking REST API Issue

We have use Professional Couriers REST API to get shipping tracking information. but my end only 3 time correct response return after that given below error. please check Screenshot. https://i.imgur.com/2SW3n8w.png any suggestion or idea above issue ? Thank you.