encounter transaction api - second cut