public function deactivate($doiValue)
    {

        // validate client
        if (!$this->isClientAuthenticated()) {
            $this->setResponse('responsecode', 'MT009');
            return false;
        }

        //get the doi info
        $doi = $this->doiRepo->getByID($doiValue);
        $this->setResponse('doi', $doiValue);

        if ($doi === null) {
            $this->setResponse('responsecode', 'MT011');
            return true;
        }

        // check if this client owns this doi
        if (!$this->isDoiAuthenticatedClients($doiValue, $doi->client_id)) {
            $this->setResponse('responsecode', 'MT008');
            $this->setResponse('verbosemessage',$doiValue." is not owned by ".$this->getAuthenticatedClient()->client_name);
            return false;
        }

        //check if the doi is inactive
        if ($doi->status != 'ACTIVE') {
            $this->setResponse('responsecode', 'MT010');
            $this->setResponse('verbosemessage',
                'DOI ' . $doiValue . " not set to ACTIVE so cannot deactivate it");
            return false;
        }

        $result = $this->dataciteClient->deActivate($doiValue);

        if ($result === true) {
            $this->setResponse('responsecode', 'MT003');
            //update the database DOIRepository
            $this->doiRepo->doiUpdate($doi, array('status'=>'INACTIVE'));
        } else {
            $this->setResponse('responsecode', 'MT010');
        }

        return $result;

    }