Samples of the XML Message Exchange between TruModule and TruService when TruModule has collected a rating and transaction record that needs to be delivered to TruService. :

  • TruModule sends a Rating and Transaction Details (C); and,
  • TruService responds with a simple acknowledgment (D).

(The ā€˜Cā€™ and ā€˜Dā€™ markers refer to the relevant annotations in the customer journey UML diagrams when these messages are used.)

Note that the Rating record may or may not contain a transaction record. The transaction relating to the same Session Id may be delivered independently (in which case the transaction element is no part of a rating element).

The full specification for the TruService XML messages can be found here

TruModule sends a rating and transaction (C)

<?xml version="1.0" encoding="UTF-8"?>
<Request PartnerId="1" MerchantId="2" TerminalId="3" SessionId="2349572348" xmlns="http://docs.trurating.com/schema/truservice/v240.xsd">
  <Rating Value="5" ResponseTimeMs="1200" Rfc1766="en-GB" DateTime="2015-11-29T09:13:22Z">
    <Transaction Id="121212" DateTime="2015-11-29T09:13:22Z" Amount="1203" Gratuity="0" Currency="826" Result="APPROVED" AuthorizationCode="123456" AcquirerReferenceNum="1234ABCD" PaymentAccountReference="1234567890123456789012345">
      <Tender CardType="VISA" EntryMode="05" TenderType="CREDIT" Amount="1203">
      <CardHash Type="TRUTRACE" Value="559535475934574398753EF54545835345ABEDF859345439584359835A2442343F56575767F999B4244324324324234" />
      </Tender>
    </Transaction>
  </Rating>
</Request>

TruService responds with simple acknowledgement (D)

<?xml version="1.0" encoding="UTF-8"?>
<Response PartnerId="1" MerchantId="2" TerminalId="3" SessionId="2349572348" xmlns="http://docs.trurating.com/schema/truservice/v240.xsd"/>
Feedback