update transaction api