transaction api update