Samples of the XML Message Exchange between TruModule and TruService when TruModule has collected a rating early in the transaction and delivered it immediately, or no question was asked and so there is no rating record to send. The transaction record needs to be delivered to TruService separately at the end of the transaction. :

  • TruModule sends a Transaction Details and,
  • TruService responds with a simple acknowledgment.

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

TruModule sends a transaction

<?xml version="1.0" encoding="UTF-8"?>
<Request PartnerId="1" MerchantId="2" TerminalId="3" SessionId="2349572348" xmlns="http://docs.trurating.com/schema/truservice/v230.xsd">
  <Transaction Id="121212" DateTime="2015-11-29T09:13:22Z" Amount="1203" Gratuity="0" Currency="826" Result="APPROVED">
    <Tender CardType="VISA" EntryMode="05" TenderType="CREDIT" Amount="1203">
      <CardHash Type="CDH1" Value="12345678" />
    </Tender>
  </Transaction>
</Request>

TruService responds with simple acknowledgement

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