XML Capture Given Auth example

Document created by gjsissons on May 8, 2016Last modified by gjsissons on May 8, 2016
Version 2Show Document
  • View in full screen mode

You typically use a Capture Given Auth transaction when the associated Authorization occurred outside of the system (for example, if you received a telephone Authorization). Another possible use for a Capture Given Auth transaction is if the Authorization transaction occurred within the system, but the <litleTxnId> is unknown by the submitting party (for example, if the Auth was submitted by a merchant, but a fulfiller submits a Capture Given Auth).

 

The following example shows a single Capture Given Auth request. The example uses the <card> child element, but a tokenized merchant could use the <token> child element in its place.

 

<litleOnlineRequest version="9.4" xmlns="http://www.litle.com/schema" merchantId="100">
     <authentication>
          <user>userName</user>
          <password>password</password>
     </authentication>
     <captureGivenAuth id="AX54321678" reportGroup="RG27">
          <orderId>orderId</orderId>
          <authInformation>
               <authDate>2011-08-24</authDate>
               <authCode>123456</authCode>
          </authInformation>
          <amount>10000</amount>
          <orderSource>ecommerce</orderSource>
          <card>
               <type>VI</type>
               <number>4005550000081019</number>
               <expDate>0910</expDate>
          </card>
          <enhancedData>
               <customerReference>PO12345</customerReference>
               <salesTax>125</salesTax>
               <deliveryType>TBD</deliveryType>
               <taxExempt>false</taxExempt>
               <discountAmount>0</discountAmount>
               <shippingAmount>495</shippingAmount>
               <dutyAmount>0</dutyAmount>
               <shipFromPostalCode>01851</shipFromPostalCode>
               <destinationPostalCode>01851</destinationPostalCode>
               <destinationCountryCode>USA</destinationCountryCode>
               <invoiceReferenceNumber>123456</invoiceReferenceNumber>
               <orderDate>2011-08-14</orderDate>
               <detailTax>
                    <taxIncludedInTotal>true</taxIncludedInTotal>
                    <taxAmount>55</taxAmount>
                    <taxRate>0.0059</taxRate>
                    <taxTypeIdentifier>00</taxTypeIdentifier>
                    <cardAcceptorTaxId>011234567</cardAcceptorTaxId>
               </detailTax>
               <lineItemData>
                    <itemSequenceNumber>1</itemSequenceNumber>
                    <itemDescription>chair</itemDescription>
                    <productCode>CH123</productCode>
                    <quantity>1</quantity>
                    <unitOfMeasure>EACH</unitOfMeasure>
                    <taxAmount>125</taxAmount>
                    <lineItemTotal>9380</lineItemTotal>
                    <lineItemTotalWithTax>9505</lineItemTotalWithTax>
                    <itemDiscountAmount>0</itemDiscountAmount>
                    <commodityCode>300</commodityCode>
                    <unitCost>93.80</unitCost>
               </lineItemData>
          </enhancedData>
     </captureGivenAuth>
</litleOnlineRequest>

 

Return to a list of sample XML transactions

 

For additional information, consult the LitleXML reference guide

Attachments

    Outcomes