Point of Sale qbXML for querying for Customers

From ConsoliBYTE Wiki
Jump to: navigation, search

Point of Sale qbXML for Querying for Customers

Example Request

 
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <?qbposxml version="3.0"?>
    <QBPOSXML>
        <QBPOSXMLMsgsRq onError="continueOnError">
            <CustomerQueryRq requestID="1" iterator="Start">
                <MaxReturned>53</MaxReturned>
            </CustomerQueryRq>
        </QBPOSXMLMsgsRq>
    </QBPOSXML>
 

Example Response

Response from a QBPOS-instance that happens to have just one customer in it:

 
    <?xml version="1.0" encoding="windows-1252"?>
    <QBPOSXML>
        <QBPOSXMLMsgsRs>
            <CustomerQueryRs iteratorID="{507133F5-16E8-4E70-BFFA-3276ACBF2AC0}"
                             iteratorRemainingCount="0"
                             requestID="1"
                             retCount="1"
                             statusCode="0"
                             statusMessage="Status OK"
                             statusSeverity="Info">
                <CustomerRet>
                    <ListID>-3667307488274906879</ListID>
                    <TimeCreated>2013-12-25T18:55:35</TimeCreated>
                    <TimeModified>2013-12-25T18:59:02</TimeModified>
                    <AccountBalance>0.00</AccountBalance>
                    <AccountLimit>0.00</AccountLimit>
                    <CustomerDiscPercent>0.00</CustomerDiscPercent>
                    <CustomerDiscType>None</CustomerDiscType>
                    <CustomerID>0400001000014</CustomerID>
                    <DefaultShipAddress>Bill To Address</DefaultShipAddress>
                    <FirstName>Pulkit</FirstName>
                    <FullName>Pulkit Singhal</FullName>
                    <IsAcceptingChecks>True</IsAcceptingChecks>
                    <IsNoShipToBilling>False</IsNoShipToBilling>
                    <IsOkToEMail>False</IsOkToEMail>
                    <IsRewardsMember>False</IsRewardsMember>
                    <IsUsingChargeAccount>False</IsUsingChargeAccount>
                    <IsUsingWithQB>False</IsUsingWithQB>
                    <LastName>Singhal</LastName>
                    <LastSale>2013-12-25</LastSale>
                    <PastDue>0.00</PastDue>
                    <PriceLevelNumber>1</PriceLevelNumber>
                    <StoreExchangeStatus>Modified</StoreExchangeStatus>
                </CustomerRet>
            </CustomerQueryRs>
        </QBPOSXMLMsgsRs>
    </QBPOSXML>