{"id":16353,"date":"2018-07-25T16:26:30","date_gmt":"2018-07-25T14:26:30","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=16353"},"modified":"2019-07-18T08:21:17","modified_gmt":"2019-07-18T06:21:17","slug":"api-calls-dont-work-after-updating-magento-to-2-2-5-version","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html","title":{"rendered":"API Calls Don&#8217;t Work After Updating Magento to 2.2.5 Version"},"content":{"rendered":"\n<p>We have recently updated the Magento platform from version 2.2.3 to 2.2.5 to one of our clients and&nbsp;faced a&nbsp;painstaking issue: every API call return us an error message: `Consumer is not authorized to access %resources`.<\/p>\n<p><!--more--><\/p>\n<p>The full stack trace of error is:<\/p>\n<pre class=\"lang:js decode:true\">{\r\n&nbsp;&nbsp;&nbsp;\"message\": \"Consumer is not authorized to access %resources\",\r\n&nbsp;&nbsp;&nbsp;\"parameters\": {\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"resources\": \"Magento_Sales::sales\"\r\n&nbsp;&nbsp;&nbsp;},\r\n&nbsp;&nbsp;&nbsp;\"trace\": \"#0 \/var\/www\/html\/vendor\/magento\/module-webapi\/Controller\/Rest\/RequestValidator.php(68): \r\nMagento\\\\Webapi\\\\Controller\\\\Rest\\\\RequestValidator-&gt;checkPermissions()\\n#1 \/var\/www\/html\/vendor\/magento\/module-webapi\/Controller\/Rest\/InputParamsResolver.php(86): \r\nMagento\\\\Webapi\\\\Controller\\\\Rest\\\\RequestValidator-&gt;validate()\\n#2 \/var\/www\/html\/vendor\/magento\/module-webapi\/Controller\/Rest.php(322): \r\nMagento\\\\Webapi\\\\Controller\\\\Rest\\\\InputParamsResolver-&gt;resolve()\\n#3 \/var\/www\/html\/vendor\/magento\/module-webapi\/Controller\/Rest.php(239): \r\nMagento\\\\Webapi\\\\Controller\\\\Rest-&gt;processApiRequest()\\n#4 \/var\/www\/html\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): \r\nMagento\\\\Webapi\\\\Controller\\\\Rest-&gt;dispatch(Object(Magento\\\\Framework\\\\App\\\\Request\\\\Http))\\n#5 \/var\/www\/html\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): \r\nMagento\\\\Webapi\\\\Controller\\\\Rest\\\\Interceptor-&gt;___callParent('dispatch', Array)\\n#6 \/var\/www\/html\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): \r\nMagento\\\\Webapi\\\\Controller\\\\Rest\\\\Interceptor-&gt;Magento\\\\Framework\\\\Interception\\\\{closure}(Object(Magento\\\\Framework\\\\App\\\\Request\\\\Http))\\n#7 \/var\/www\/html\/generated\/code\/Magento\/Webapi\/Controller\/Rest\/Interceptor.php(39): \r\nMagento\\\\Webapi\\\\Controller\\\\Rest\\\\Interceptor-&gt;___callPlugins('dispatch', Array, Array)\\n#8 \/var\/www\/html\/vendor\/magento\/framework\/App\/Http.php(135): \r\nMagento\\\\Webapi\\\\Controller\\\\Rest\\\\Interceptor-&gt;dispatch(Object(Magento\\\\Framework\\\\App\\\\Request\\\\Http))\\n#9 \/var\/www\/html\/generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php(24): \r\nMagento\\\\Framework\\\\App\\\\Http-&gt;launch()\\n#10 \/var\/www\/html\/vendor\/magento\/framework\/App\/Bootstrap.php(256): \r\nMagento\\\\Framework\\\\App\\\\Http\\\\Interceptor-&gt;launch()\\n#11 \/var\/www\/html\/index.php(39): Magento\\\\Framework\\\\App\\\\Bootstrap-&gt;run(Object(Magento\\\\Framework\\\\App\\\\Http\\\\Interceptor))\\n#12 {main}\"\r\n}<\/pre>\n<p>We&nbsp;looked for the solution to this&nbsp;issue on GitHub, but couldn&rsquo;t find it there, so we began the debugging process.&nbsp;What caused this issue was the method \\Magento\\Webapi\\Model\\Authorization\\TokenUserContext::isTokenExpired.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/migration-to-magento-2\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/06\/migration-to-magento-2.png\" width=\"100\" height=\"100\" alt=\"migration to magento 2\" class=\"module_image\" title=\"API Calls Don't Work After Updating Magento to 2.2.5 Version\"><div class=\"module_content_part\"><h3 class=\"title\">Migration to Magento 2<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG Magento migration<\/p><a href=\"https:\/\/belvg.com\/migration-to-magento-2\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n<p>As soon as we found the cause of the issue we checked this file on a `2.2-develop` branch&nbsp;on GitHub and found a <a href=\"https:\/\/github.com\/magento\/magento2\/commit\/eab367461cefb99faa2fe40089c179ee924e2e3b#diff-e36502a5a5687620a4658774923c0cca\" target=\"_blank\" rel=\"noopener\">patch<\/a>.&nbsp;After that we found an&nbsp;<a href=\"https:\/\/github.com\/magento\/magento2\/issues\/15564\" target=\"_blank\" rel=\"noopener\">issue<\/a> on GitHub:<\/p>\n<pre class=\"lang:php decode:true\">private function isTokenExpired(Token $token): bool\r\n{\r\nif ($token-&gt;getUserType() == UserContextInterface::USER_TYPE_ADMIN) {\r\n&nbsp;&nbsp;&nbsp;$tokenTtl = $this-&gt;oauthHelper-&gt;getAdminTokenLifetime();\r\n} elseif ($token-&gt;getUserType() == UserContextInterface::USER_TYPE_CUSTOMER) {\r\n&nbsp;&nbsp;&nbsp;$tokenTtl = $this-&gt;oauthHelper-&gt;getCustomerTokenLifetime();\r\n} else {\r\n&nbsp;&nbsp;&nbsp;\/\/ other user-type tokens are considered always valid\r\n&nbsp;&nbsp;&nbsp;return false;\r\n}\r\nif (empty($tokenTtl)) { \/\/this part should be added\r\n&nbsp;&nbsp;&nbsp;return false; \/\/to avoid the token issue\r\n}\r\nif ($this-&gt;dateTime-&gt;strToTime($token-&gt;getCreatedAt()) &lt; ($this-&gt;date-&gt;gmtTimestamp() - $tokenTtl * 3600)) {\r\n&nbsp;&nbsp;&nbsp;return true;\r\n}\r\nreturn false;\r\n}<\/pre>\n<p>Since this issue is&nbsp;relevant&nbsp;to the currently available version of Magento (the current version now is 2.2.5), I hope you will find this article&nbsp;helpful.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/magento-development\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><div class=\"module_content_part\"><h3 class=\"title\">Magento Development <\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG Magento development<\/p><a href=\"https:\/\/belvg.com\/magento-development\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n<p>Looking for a reliable partner to <a href=\"https:\/\/belvg.com\/migration-to-magento-2\" target=\"_blank\" rel=\"noopener\">migrate your Magento store<\/a> to the newest version? Turn to BelVG!<\/p>\n\n","protected":false},"excerpt":{"rendered":"The API issue that happens after updating Magento to 2.2.5 version","protected":false},"author":12,"featured_media":16356,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[491,389],"tags":[],"class_list":["post-16353","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-magento-2","category-magento2-development","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"API calls may not work after updating of Magento to the latest 2.2.5 version. We have identified the cause of the issue and found a patch to it on GitHub.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Aliaksandr Simonchik\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#article\",\"name\":\"API issue after updating Magento to 2.2.5 version | BelVG Blog\",\"headline\":\"API Calls Don&#8217;t Work After Updating Magento to 2.2.5 Version\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/API_Calls_Dont_Work_After_Updating.jpg\",\"width\":770,\"height\":433,\"caption\":\"The API calls issue after apdating Magento to 2.2.5 version\"},\"datePublished\":\"2018-07-25T16:26:30+02:00\",\"dateModified\":\"2019-07-18T08:21:17+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#webpage\"},\"articleSection\":\"Magento 2, Magento 2 Development, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento2-development#listItem\",\"name\":\"Magento 2 Development\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento2-development#listItem\",\"position\":2,\"name\":\"Magento 2 Development\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento2-development\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#listItem\",\"name\":\"API Calls Don&#8217;t Work After Updating Magento to 2.2.5 Version\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#listItem\",\"position\":3,\"name\":\"API Calls Don&#8217;t Work After Updating Magento to 2.2.5 Version\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento2-development#listItem\",\"name\":\"Magento 2 Development\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik\",\"name\":\"Aliaksandr Simonchik\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6553917a81b1da7866b8b875368df6cbbec56413c3438694df8539de7fb092c0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Aliaksandr Simonchik\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html\",\"name\":\"API issue after updating Magento to 2.2.5 version | BelVG Blog\",\"description\":\"API calls may not work after updating of Magento to the latest 2.2.5 version. We have identified the cause of the issue and found a patch to it on GitHub.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/API_Calls_Dont_Work_After_Updating.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html\\\/#mainImage\",\"width\":770,\"height\":433,\"caption\":\"The API calls issue after apdating Magento to 2.2.5 version\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#mainImage\"},\"datePublished\":\"2018-07-25T16:26:30+02:00\",\"dateModified\":\"2019-07-18T08:21:17+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"API issue after updating Magento to 2.2.5 version | BelVG Blog","description":"API calls may not work after updating of Magento to the latest 2.2.5 version. We have identified the cause of the issue and found a patch to it on GitHub.","canonical_url":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#article","name":"API issue after updating Magento to 2.2.5 version | BelVG Blog","headline":"API Calls Don&#8217;t Work After Updating Magento to 2.2.5 Version","author":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/API_Calls_Dont_Work_After_Updating.jpg","width":770,"height":433,"caption":"The API calls issue after apdating Magento to 2.2.5 version"},"datePublished":"2018-07-25T16:26:30+02:00","dateModified":"2019-07-18T08:21:17+02:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#webpage"},"articleSection":"Magento 2, Magento 2 Development, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento2-development#listItem","name":"Magento 2 Development"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento2-development#listItem","position":2,"name":"Magento 2 Development","item":"https:\/\/belvg.com\/blog\/category\/magento2-development","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#listItem","name":"API Calls Don&#8217;t Work After Updating Magento to 2.2.5 Version"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#listItem","position":3,"name":"API Calls Don&#8217;t Work After Updating Magento to 2.2.5 Version","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento2-development#listItem","name":"Magento 2 Development"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author","url":"https:\/\/belvg.com\/blog\/author\/alex-simonchik","name":"Aliaksandr Simonchik","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/6553917a81b1da7866b8b875368df6cbbec56413c3438694df8539de7fb092c0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Aliaksandr Simonchik"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#webpage","url":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html","name":"API issue after updating Magento to 2.2.5 version | BelVG Blog","description":"API calls may not work after updating of Magento to the latest 2.2.5 version. We have identified the cause of the issue and found a patch to it on GitHub.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/API_Calls_Dont_Work_After_Updating.jpg","@id":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html\/#mainImage","width":770,"height":433,"caption":"The API calls issue after apdating Magento to 2.2.5 version"},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html#mainImage"},"datePublished":"2018-07-25T16:26:30+02:00","dateModified":"2019-07-18T08:21:17+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"16353","title":"API issue after updating Magento to 2.2.5 version | #site_title","description":"API calls may not work after updating of Magento to the latest 2.2.5 version. We have identified the cause of the issue and found a patch to it on GitHub.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:37:06","updated":"2026-11-03 18:37:06"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/magento2-development\" title=\"Magento 2 Development\">Magento 2 Development<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAPI Calls Don\u2019t Work After Updating Magento to 2.2.5 Version\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Magento 2 Development","link":"https:\/\/belvg.com\/blog\/category\/magento2-development"},{"label":"API Calls Don&#8217;t Work After Updating Magento to 2.2.5 Version","link":"https:\/\/belvg.com\/blog\/api-calls-dont-work-after-updating-magento-to-2-2-5-version.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=16353"}],"version-history":[{"count":-4,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16353\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/16356"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=16353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=16353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=16353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}