UNPKG

@apite/magento2-utility

Version:

Shopgate WebCheckout utility for Magento 2 extensions

54 lines (53 loc) 3.15 kB
{ "status": 404, "statusText": "Not Found", "headers": { "cache-control": "no-store", "content-type": "application/json; charset=utf-8", "expires": "Thu, 19 Nov 1981 08:52:00 GMT", "pragma": "no-cache", "server": "Caddy", "set-cookie": [ "PHPSESSID=cjtoojibl35nvbljlol752sktk; expires=Tue, 10 Sep 2024 14:02:47 GMT; Max-Age=3600; path=/; domain=192.168.2.165; HttpOnly; SameSite=Lax" ], "status": "404 Not Found", "x-powered-by": "PHP/8.2.3", "date": "Tue, 10 Sep 2024 13:02:48 GMT", "content-length": "1708", "connection": "close" }, "config": { "url": "/carts/mine/coupons/bad-code", "method": "put", "headers": { "Accept": "application/json", "shopgate-check": "true", "Cookie": "XDEBUG_SESSION=1;", "Content-Type": "application/json", "Authorization": "Bearer eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ.eyJ1aWQiOjEsInV0eXBpZCI6MywiaWF0IjoxNzI1OTczMzI2LCJleHAiOjE3NTc1MDkzMjZ9.AtXHcfCnUe0I2FzqTostLbytJATt6fqg65FsHDGeEa8", "User-Agent": "axios/0.21.4" }, "baseURL": "http://192.168.2.165/rest/default/V1", "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 0, "withCredentials": true, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1, "transitional": { "silentJSONParsing": true, "forcedJSONParsing": true, "clarifyTimeoutError": false } }, "data": { "message": "The coupon code isn't valid. Verify the code and try again.", "trace": "#0 [internal function]: Magento\\Quote\\Model\\CouponManagement->set()\n#1 /Users/konstantin/Dev/apite/m2-dev1/magento2/vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php(95): call_user_func_array()\n#2 /Users/konstantin/Dev/apite/m2-dev1/magento2/vendor/magento/module-webapi/Controller/Rest.php(202): Magento\\Webapi\\Controller\\Rest\\SynchronousRequestProcessor->process()\n#3 /Users/konstantin/Dev/apite/m2-dev1/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\\Webapi\\Controller\\Rest->dispatch()\n#4 /Users/konstantin/Dev/apite/m2-dev1/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\\Webapi\\Controller\\Rest\\Interceptor->___callParent()\n#5 /Users/konstantin/Dev/apite/m2-dev1/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\\Webapi\\Controller\\Rest\\Interceptor->Magento\\Framework\\Interception\\{closure}()\n#6 /Users/konstantin/Dev/apite/m2-dev1/magento2/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(23): Magento\\Webapi\\Controller\\Rest\\Interceptor->___callPlugins()\n#7 /Users/konstantin/Dev/apite/m2-dev1/magento2/vendor/magento/framework/App/Http.php(116): Magento\\Webapi\\Controller\\Rest\\Interceptor->dispatch()\n#8 /Users/konstantin/Dev/apite/m2-dev1/magento2/vendor/magento/framework/App/Bootstrap.php(264): Magento\\Framework\\App\\Http->launch()\n#9 /Users/konstantin/Dev/apite/m2-dev1/magento2/pub/index.php(30): Magento\\Framework\\App\\Bootstrap->run()\n#10 {main}" } }