QbXML for Adding a Received Payment with Intuit Merchant Services data

From ConsoliBYTE Wiki
Jump to: navigation, search
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="8.0"?>
<QBXML>
        <QBXMLMsgsRq onError="stopOnError">
                <ReceivePaymentAddRq>
                        <ReceivePaymentAdd>
                                <CustomerRef>
                                        <ListID>F230000-1196864585</ListID>
                                        <!--<FullName>Keith Palmer</FullName>--> <!-- You can specify either ListID or FullName -->
                                </CustomerRef>
                                <!--<ARAccountRef>
                                        <ListID></ListID>
                                        <FullName></FullName>
                                </ARAccountRef>-->
                                <TxnDate>2007-12-14</TxnDate>
                                <RefNumber>00612361</RefNumber>
                                <TotalAmount>195.00</TotalAmount>
                                <PaymentMethodRef>
                                        <FullName>Check</FullName>
                                </PaymentMethodRef>
                                <Memo>Inv. #9460</Memo>
                                <!--<DepositToAccountRef>
                                        <ListID></ListID>
                                        <FullName></FullName>
                                </DepositToAccountRef>-->
                                <CreditCardTxnInfo>
                               
                               
                               
                                        <CreditCardTxnInputInfo>
                                                <CreditCardNumber>xxxxxxxxxxxx1234</CreditCardNumber>
                                                <ExpirationMonth>01</ExpirationMonth>
                                                <ExpirationYear>2013</ExpirationYear>
                                                <NameOnCard>keith Palmer</NameOnCard>
                                                <CreditCardAddress></CreditCardAddress>
                                                <CreditCardPostalCode></CreditCardPostalCode>
                                                <CreditCardTxnType>Capture</CreditCardTxnType>
                                        </CreditCardTxnInputInfo>
                                        <CreditCardTxnResultInfo>
                                                <ResultCode>0</ResultCode>
                                                <ResultMessage></ResultMessage>
                                                <CreditCardTransID>YY1003387069</CreditCardTransID>
                                                <MerchantAccountNumber>4266965085386885</MerchantAccountNumber>
                                                <AuthorizationCode>157102</AuthorizationCode>
                                                <AVSStreet>NotAvailable</AVSStreet>
                                                <AVSZip>NotAvailable</AVSZip>
                                                <CardSecurityCodeMatch>NotAvailable</CardSecurityCodeMatch>
                                                <ReconBatchID>420130124 1Q10284266965085386885AUTO04</ReconBatchID>
                                                <PaymentGroupingCode>4</PaymentGroupingCode>
                                                <PaymentStatus>Completed</PaymentStatus>
                                                <TxnAuthorizationTime>2013-01-24T18:28:48</TxnAuthorizationTime>
                                                <TxnAuthorizationStamp>1359052128</TxnAuthorizationStamp>
                                                <ClientTransID>q0c1ce3b</ClientTransID>
                                        </CreditCardTxnResultInfo>
                               
                               
                                </CreditCardTxnInfo>
                                <AppliedToTxnAdd>
                                        <TxnID>12006-1196864828</TxnID>
                                        <PaymentAmount>195.00</PaymentAmount>
                                </AppliedToTxnAdd>
                                <!-- If you don't want to apply payments manually to a particular transaction, use <IsAutoApply>true</IsAutoApply> -->
                                <!--   instead of the <AppliedToTxn> node. QuickBooks will make it's best guess how to apply the payment. -->
                               
                               
                               
                        </ReceivePaymentAdd>
                </ReceivePaymentAddRq>
        </QBXMLMsgsRq>
</QBXML>