XML Capture Given Auth example

Document created by gjsissons on May 8, 2016Last modified by admin on Sep 12, 2019
Version 3Show 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.

 

<cnpRequest version="12.0" xmlns="http://www.vantivcnp.com/schema" numBatchRequests="1">
    <authentication>
        <user>User Name</user>
        <password>password</password>
    </authentication>
    <batchRequest id="batchId" numCaptureGivenAuths="1" captureGivenAuthAmount="10000" merchantId="100">
        <captureGivenAuth id="AX54321678" reportGroup="RG27">
            <orderId>orderId</orderId>
            <authInformation>
                <authDate>2016-09-21</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>
                <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>2016-09-21</orderDate>
                <detailTax>
                    <taxIncludedInTotal>true</taxIncludedInTotal>
                    <taxAmount>55</taxAmount>
                    <taxRate>0.0055</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>
    </batchRequest>

 

Return to a list of sample XML transactions

 

For additional information, consult the LitleXML reference guide

Attachments

    Outcomes