public function updateInstallments($recurrentId, $installments){
        $uri = Braspag::$apiBase . "RecurrentPayment/$recurrentId/Installments"; 
        
        $response = Request::put($uri)
            ->addHeaders($this->headers)
            ->addHeader("content-type", "text/json")
            ->body($installments)            
            ->send();

        if($response->code == HttpStatus::BadRequest){
            Utils::handleApiError($response);
        }

        return $response->code;
    }