About transation id

Hello,
for roku web api to validatate the transation we saw we need transation id how how can we get transation id dynamically can you explain?and is there any other way also can you explain?