Return tran_id on a2a failure
Adds tran_id and apprcode to aip and a2a results