QbXML for Adding an Invoice

From ConsoliBYTE Wiki
Revision as of 18:32, 10 April 2013 by Consolibyte (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Example qbXML Request

 
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="2.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <InvoiceAddRq requestID="2">
      <InvoiceAdd>
        <CustomerRef>
          <FullName>Keith Palmer</FullName>
        </CustomerRef>
        <TxnDate>2007-12-14</TxnDate>
        <RefNumber>9668</RefNumber>
        <BillAddress>
          <Addr1>56 Cowles Road</Addr1>
          <City>Willington</City>
          <State>CT</State>
          <PostalCode>06279</PostalCode>
          <Country>United States</Country>
        </BillAddress>
        <PONumber></PONumber>
        <Memo></Memo>
 
        <InvoiceLineAdd>
          <ItemRef>
            <FullName>Test Item</FullName>
          </ItemRef>
          <Desc>Item 1 Description Goes Here</Desc>
          <Quantity>1</Quantity>
          <Rate>295</Rate>
        </InvoiceLineAdd>
 
        <InvoiceLineAdd>
          <ItemRef>
            <FullName>Test Item</FullName>
          </ItemRef>
          <Desc>Item 2 Description Goes Here</Desc>
          <Quantity>3</Quantity>
          <Rate>25</Rate>
        </InvoiceLineAdd>
 
      </InvoiceAdd>
    </InvoiceAddRq>
  </QBXMLMsgsRq>
</QBXML>