QbXML for Adding a Customer (QuickBooks Online)

From ConsoliBYTE Wiki
Jump to: navigation, search

Example XML Request

 
<?xml version="1.0"?>
<?qbxml version="6.0"?>
<QBXML>
    <SignonMsgsRq>
        <SignonTicketRq>
            <ClientDateTime>2013-04-16T06:04:15</ClientDateTime>
            <SessionTicket>xxxxxxxxxxxx3cka5w0759hz2jdnr:674852765</SessionTicket>
            <Language>English</Language>
            <AppID>xxxxxxxxx</AppID>
            <AppVer>1</AppVer>
        </SignonTicketRq>
    </SignonMsgsRq>
    <QBXMLMsgsRq onError="stopOnError">
        <CustomerAddRq requestID="23">
            <CustomerAdd>
                <!-- account # 2 -->
                <Name>Test Account 1234</Name>
                <FirstName>Keith</FirstName>
                <LastName>Palmer 1234</LastName>
                <BillAddress>
                    <Addr1>Keith Palmer 1234</Addr1>
                    <Addr2>Keith Palmer</Addr2>
                    <Addr3>72 E Blue Grass Road</Addr3>
                    <City>Mt Pleasant</City>
                    <State>MI</State>
                    <PostalCode>48858</PostalCode>
                    <Country>USA</Country>
                </BillAddress>
                <ShipAddress>
                    <Addr1>Keith Palmer 1234</Addr1>
                    <Addr2>Keith Palmer</Addr2>
                    <Addr3>72 E Blue Grass Road</Addr3>
                    <City>Mt Pleasant</City>
                    <State>MI</State>
                    <PostalCode>48858</PostalCode>
                    <Country>USA</Country>
                </ShipAddress>
                <Phone>860-634-1602</Phone>
                <Email>keith@consolibyte.com</Email>
            </CustomerAdd>
        </CustomerAddRq>
    </QBXMLMsgsRq>
</QBXML>