QbXML for Adding an Invoice

From ConsoliBYTE Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "== Example qbXML Request == <code lang="xml"> <?xml version="1.0" encoding="utf-8"?> <?qbxml version="2.0"?> <QBXML> <QBXMLMsgsRq onError="stopOnError"> <InvoiceAddRq requ...")
 
m (Example qbXML Request)
 
Line 3: Line 3:
 
<code lang="xml">
 
<code lang="xml">
 
<?xml version="1.0" encoding="utf-8"?>
 
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="2.0"?>
+
<?qbxml version="10.0"?>
 
<QBXML>
 
<QBXML>
 
<QBXMLMsgsRq onError="stopOnError">
 
<QBXMLMsgsRq onError="stopOnError">
Line 21: Line 21:
 
</BillAddress>
 
</BillAddress>
 
<PONumber></PONumber>
 
<PONumber></PONumber>
 +
<ItemSalesTaxRef>
 +
        <FullName>CT Tax</FullName>
 +
</ItemSalesTaxRef>
 
<Memo></Memo>
 
<Memo></Memo>
  

Latest revision as of 00:07, 7 February 2015

Example qbXML Request

 
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="10.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>
        <ItemSalesTaxRef>
                <FullName>CT Tax</FullName>
        </ItemSalesTaxRef>
        <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>