QbXML for Adding Service Items

From ConsoliBYTE Wiki
Jump to: navigation, search

Example qbXML Request

 
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="5.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <ItemServiceAddRq requestID="SXRlbVNlcnZpY2VBZGR8OTc=" >
      <ItemServiceAdd>
        <Name>Tubes</Name>
        <SalesOrPurchase>
          <Desc>Tubes are excellent for all ages. These are Guaranteed fun for everyone</Desc>
          <Price>110</Price>
          <AccountRef>
            <FullName>Other Income</FullName>
          </AccountRef>
        </SalesOrPurchase>
      </ItemServiceAdd>
    </ItemServiceAddRq>
  </QBXMLMsgsRq>
</QBXML>
 

Example qbXML Response

 
<?xml version="1.0" ?>
<QBXML>
  <QBXMLMsgsRs>
    <ItemServiceAddRs requestID="SXRlbVNlcnZpY2VBZGR8OTc=" statusCode="0" statusSeverity="Info" statusMessage="Status OK">
      <ItemServiceRet>
      <ListID>40000-1226546793</ListID>
      <TimeCreated>2008-11-12T22:26:33-05:00</TimeCreated>
      <TimeModified>2008-11-12T22:26:33-05:00</TimeModified>
      <EditSequence>1226546793</EditSequence>
      <Name>Tubes</Name>
      <FullName>Tubes</FullName>
      <IsActive>true</IsActive>
      <Sublevel>0</Sublevel>
      <SalesOrPurchase>
        <Desc>Tubes are excellent for all ages. These are Guaranteed fun for everyone</Desc>
        <Price>110.00</Price>
        <AccountRef>
          <ListID>50000-1226546425</ListID>
          <FullName>Other Income</FullName>
        </AccountRef>
        </SalesOrPurchase>
      </ItemServiceRet>
    </ItemServiceAddRs>
  </QBXMLMsgsRs>
</QBXML>