Allows you to update a specified item

POST {{baseUrl}}/Items/:ItemID?unitdp=<integer>

Request Params

KeyDatatypeRequiredDescription
unitdpstringe.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts

Request Body

{"Items"=>[{"Code"=>"<string>", "InventoryAssetAccountCode"=>"<string>", "Name"=>"<string>", "IsSold"=>"<boolean>", "IsPurchased"=>"<boolean>", "Description"=>"<string>", "PurchaseDescription"=>"<string>", "PurchaseDetails"=>{"UnitPrice"=>"<double>", "AccountCode"=>"<string>", "COGSAccountCode"=>"<string>", "TaxType"=>"<string>"}, "SalesDetails"=>{"UnitPrice"=>"<double>", "AccountCode"=>"<string>", "COGSAccountCode"=>"<string>", "TaxType"=>"<string>"}, "IsTrackedAsInventory"=>"<boolean>", "TotalCostPool"=>"<double>", "QuantityOnHand"=>"<double>", "ItemID"=>"<uuid>", "StatusAttributeString"=>"<string>", "ValidationErrors"=>[{"Message"=>"<string>"}, {"Message"=>"<string>"}]}, {"Code"=>"<string>", "InventoryAssetAccountCode"=>"<string>", "Name"=>"<string>", "IsSold"=>"<boolean>", "IsPurchased"=>"<boolean>", "Description"=>"<string>", "PurchaseDescription"=>"<string>", "PurchaseDetails"=>{"UnitPrice"=>"<double>", "AccountCode"=>"<string>", "COGSAccountCode"=>"<string>", "TaxType"=>"<string>"}, "SalesDetails"=>{"UnitPrice"=>"<double>", "AccountCode"=>"<string>", "COGSAccountCode"=>"<string>", "TaxType"=>"<string>"}, "IsTrackedAsInventory"=>"<boolean>", "TotalCostPool"=>"<double>", "QuantityOnHand"=>"<double>", "ItemID"=>"<uuid>", "StatusAttributeString"=>"<string>", "ValidationErrors"=>[{"Message"=>"<string>"}, {"Message"=>"<string>"}]}]}

HEADERS

KeyDatatypeRequiredDescription
xero-tenant-idstring(Required) Xero identifier for Tenant
Content-Typestring

RESPONSES

status: OK

{&quot;Id&quot;:&quot;24feb629-6b14-499e-9aa1-fc2c596c0280&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Provider Name Example&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1552332558975)/&quot;,&quot;Items&quot;:[{&quot;ItemID&quot;:&quot;a7e87086-e0ae-4df2-83d7-e26e9a6b7786&quot;,&quot;Code&quot;:&quot;abc38306&quot;,&quot;Description&quot;:&quot;Hello Xero&quot;,&quot;UpdatedDateUTC&quot;:&quot;/Date(1552332558924)/&quot;,&quot;PurchaseDetails&quot;:{},&quot;SalesDetails&quot;:{},&quot;Name&quot;:&quot;Hello8746&quot;,&quot;IsTrackedAsInventory&quot;:false,&quot;IsSold&quot;:true,&quot;IsPurchased&quot;:true,&quot;ValidationErrors&quot;:[]}]}