I think that what you may be seeing is the "reference ID" or "<refId>" element. The reference ID is an optional field for most CIM request types that you can use for your own tracking purposes. We will always return the reference ID exactly as it was sent to us in your initial request.
If you are not personally specifying a reference ID, my best guess is that one is automatically being generated by a library or sample code that you may have utilized to build your CIM implementation. To answer your last question, the reference ID element is only included in the response if a reference ID was specified in the request.
Thanks for your question and welcome to the developer community!
I just looked at the report of a transaction and it has an ID, e.g., 2150535376. I looked at the response for that transaction, and it is the same number in the 7 th place of the direct_response. The ruby sample code off the CIM website has:
directResponse = REXML::XPath.first(doc.root, '/*/directResponse').text
transId = directResponse.split(',')
puts 'New transId = ' + transId
So is this the transaction ID? Is this what I would use to void a transaction?
What is the meaning of the remaining bits of informatin?
A reply after almost 3 years for the benefit of those who come to this page like I did:
If you are using the authorize.net 1.5.2 gem , you can access the transaction_id with response.direct_response.transaction_id . This is simpler than the regex with xpath.