updating transactions api