code: public function validateServiceVersion($version)
      {
          $url = $this->_getApiServiceUri() . 'version/' .$version. '/validate';
          $result = $this->_fetch($url, 'GET');
  
          if ($result->status == 'error') {
              throw new LocalizedException(__('Failed to validate service version: ' . $result->msg));
          }
      }
docs: Validate the version for a particular service and version.
  
  @param $version
  @throws LocalizedException