Differences

This shows you the differences between two versions of the page.

Link to this comparison view

quickbooks_qbxml_iteminventoryadd [2013/01/21 12:44] (current)
Line 1: Line 1:
 +====== Example qbXML to add an Inventory Item ====== 
  
 +===== Example qbXML Request ===== 
 +
 +<file>
 +<?xml version="1.0" encoding="utf-8"?>
 +<?qbxml version="7.0"?>
 +<QBXML>
 + <QBXMLMsgsRq onError="stopOnError">
 + <ItemInventoryAddRq requestID="SXRlbUludmVudG9yeUFkZHwxNTA=" >
 + <ItemInventoryAdd>
 + <Name>product name here</Name>
 + <SalesDesc>your sales description here</SalesDesc>
 + <SalesPrice>85.00</SalesPrice>
 + <IncomeAccountRef>
 + <FullName>Sales</FullName>
 + </IncomeAccountRef>
 + <COGSAccountRef>
 + <FullName>Cost of Goods Sold</FullName>
 + </COGSAccountRef>
 + <AssetAccountRef>
 + <FullName>Inventory Asset</FullName>
 + </AssetAccountRef>
 + </ItemInventoryAdd>
 + </ItemInventoryAddRq>
 + </QBXMLMsgsRq>
 +</QBXML>
 +</file>
 +
 +===== Example qbXML Response ===== 
 +
 +<file>
 +<?xml version="1.0" ?>
 +<QBXML>
 + <QBXMLMsgsRs>
 + <ItemInventoryAddRs requestID="SXRlbUludmVudG9yeUFkZHwxNTA=" statusCode="0" statusSeverity="Info" statusMessage="Status OK">
 + <ItemInventoryRet>
 + <ListID>8000085A-1231522945</ListID>
 + <TimeCreated>2009-01-09T12:42:25-05:00</TimeCreated>
 + <TimeModified>2009-01-09T12:42:25-05:00</TimeModified>
 + <EditSequence>1231522945</EditSequence>
 + <Name>product name here</Name>
 + <FullName>product name here</FullName>
 + <IsActive>true</IsActive>
 + <Sublevel>0</Sublevel>
 + <SalesTaxCodeRef>
 + <ListID>10000-1128983215</ListID>
 + <FullName>Tax</FullName>
 + </SalesTaxCodeRef>
 + <SalesDesc>your sales description here</SalesDesc>
 + <SalesPrice>85.00</SalesPrice>
 + <IncomeAccountRef>
 + <ListID>420000-1128987409</ListID>
 + <FullName>Sales</FullName>
 + </IncomeAccountRef>
 + <PurchaseCost>0.00</PurchaseCost>
 + <COGSAccountRef>
 + <ListID>50001-1129079237</ListID>
 + <FullName>Cost of Goods Sold</FullName>
 + </COGSAccountRef>
 + <AssetAccountRef>
 + <ListID>A20000-1155155306</ListID>
 + <FullName>Inventory Asset</FullName>
 + </AssetAccountRef>
 + <QuantityOnHand>0</QuantityOnHand>
 + <AverageCost>0.00</AverageCost>
 + <QuantityOnOrder>0</QuantityOnOrder>
 + <QuantityOnSalesOrder>0</QuantityOnSalesOrder>
 + </ItemInventoryRet>
 + </ItemInventoryAddRs>
 + </QBXMLMsgsRs>
 +</QBXML>
 +</file>
quickbooks_qbxml_iteminventoryadd.txt · Last modified: 2013/01/21 12:44 (external edit)