{"ok":true,"commandType":"create-item","module":"Master Data","mode":"write","summary":"Create a stock item. Supports proven UOM, sub-code, price, opening balance, BOM, and replacement child rows.","payloadSchema":{"itemCode":"required stock item code","description":"required item description","desc2":"optional second description","furtherDescription":"optional long/further description","templateItemCode":"optional template item to copy defaults from","baseUom":"optional base UOM","salesUom":"optional sales UOM","purchaseUom":"optional purchase UOM","reportUom":"optional report UOM","itemGroup":"optional Item Group code","itemType":"optional AutoCount item type such as Stock, Service, Non-Stock","taxCode":"optional sales tax code","purchaseTaxCode":"optional purchase tax code","isSalesItem":"optional boolean","isPurchaseItem":"optional boolean","stockControl":"optional boolean","hasBatchNo":"optional boolean","hasSerialNo":"optional boolean","snFormatName":"optional serial number format name","isActive":"optional boolean","uoms":"optional array of UOM rows written through AutoCount DLL ItemUomTable; supports uom, rate, shelf, price/sellingPrice, cost/purchasePrice, minSalePrice, maxSalePrice, minPurchasePrice, maxPurchasePrice, normalLevel, reorderLevel, reorderQty, barCode, price2-price6, weight, weightUom, measurement","subCodes":"optional array of item sub-code rows written through AutoCount DLL ItemSubCodeTable; supports subCode/code and uom","priceBooks":"optional array of item price book rows written through AutoCount DLL ItemPriceBook; supports ref, uom, priceCategory, fixedPrice/price, fixedDetailDiscount, qty1-price4/detailDiscount4, focLevel, focQty, bonusPointQty, bonusPoint","customerPrices":"optional array of customer-specific price rows written through AutoCount DLL ItemCustomerPrice; supports ref, uom, debtorCode/accNo, currencyCode, suppCustItemCode/customerItemCode, fixedPrice/price, fixedDetailDiscount, qty1-price4/detailDiscount4, focLevel, focQty, bonusPointQty, bonusPoint","supplierPrices":"optional array of supplier-specific price rows written through AutoCount DLL ItemSupplierPrice; supports ref, uom, creditorCode/accNo, currencyCode, suppCustItemCode/supplierItemCode, fixedPrice/price, fixedDetailDiscount, qty1-price4/detailDiscount4, focLevel, focQty, bonusPointQty, bonusPoint","openingBalances":"optional array of opening balance rows written through AutoCount DLL ItemOpeningBalance; supports location, uom, batchNo, qty, cost/unitCost, project/projNo, department/deptNo, docDate","bomRows":"optional array of BOM component rows written through AutoCount DLL ItemBOMTable; supports subItemCode/componentItemCode, qty, overheadCost, seq, costFraction, description","replacements":"optional array of replacement item rows written through AutoCount DLL ItemReplacementTable; supports replacementItemCode, replacementDegree/degree, note","batchNo":"optional first batch number to create","batchDescription":"optional first batch description","itemBrand":"optional brand","itemCategory":"optional category","itemClass":"optional class","tariffCode":"optional tariff/customs code","barCode":"optional barcode","defaultLocation":"optional default stock location","costingMethod":"optional costing method where AutoCount allows it","standardCost":"optional standard cost","minimumSellingPrice":"optional minimum selling price","sellingPrice":"optional default selling price","purchasePrice":"optional default purchase price","reorderLevel":"optional reorder quantity/level","normalLevel":"optional normal stock level","minimumLevel":"optional minimum stock level","maximumLevel":"optional maximum stock level","remark1":"optional remark field 1","remark2":"optional remark field 2"},"examplePayload":{"itemCode":"API-ITEM","description":"API Test Item","desc2":"API Item Second Description","furtherDescription":"Long item note visible in AutoCount item detail.","templateItemCode":"00004","baseUom":"UNIT","salesUom":"UNIT","purchaseUom":"UNIT","reportUom":"UNIT","itemGroup":"FG","itemType":"Stock","taxCode":"S-0","purchaseTaxCode":"P-0","isSalesItem":true,"isPurchaseItem":true,"stockControl":true,"hasBatchNo":false,"hasSerialNo":false,"isActive":true,"uoms":[{"uom":"UNIT","rate":1,"price":100,"cost":80,"barCode":"9550000000011","minSalePrice":90,"maxSalePrice":9999},{"uom":"BOX","rate":12,"price":1200,"cost":960,"barCode":"9550000000012"}],"subCodes":[{"subCode":"ALT-API-ITEM","uom":"UNIT"}],"priceBooks":[{"ref":"PB-API-ITEM","priceCategory":"RETAIL","uom":"UNIT","fixedPrice":100,"qty1":1,"price1":100}],"customerPrices":[{"ref":"CP-API-ITEM","debtorCode":"300-A001","currencyCode":"MYR","uom":"UNIT","customerItemCode":"CUST-API-ITEM","fixedPrice":95,"qty1":1,"price1":95}],"supplierPrices":[{"ref":"SP-API-ITEM","creditorCode":"400-S001","currencyCode":"MYR","uom":"UNIT","supplierItemCode":"SUP-API-ITEM","fixedPrice":80,"qty1":1,"price1":80}],"openingBalances":[{"location":"HQ","qty":10,"uom":"UNIT","unitCost":80,"batchNo":"BATCH-001","docDate":"2026-07-26"}],"bomRows":[{"subItemCode":"API-COMPONENT","qty":2,"overheadCost":0,"seq":1,"costFraction":1}],"replacements":[{"replacementItemCode":"API-REPLACEMENT","replacementDegree":1,"note":"Alternative item"}],"itemBrand":"MACSOFT","itemCategory":"API","itemClass":"A","tariffCode":"8471.30","barCode":"9550000000011","defaultLocation":"HQ","costingMethod":"Weighted Average","standardCost":80,"minimumSellingPrice":90,"sellingPrice":100,"purchasePrice":80,"reorderLevel":10,"normalLevel":50,"minimumLevel":5,"maximumLevel":200,"snFormatName":"","batchNo":"BATCH-001","batchDescription":"Opening API batch","remark1":"Created by API","remark2":"Stock item full payload example"},"notes":"Creates item master data through AutoCount SDK. Proven child table rows are written through AutoCount DLL DataTables and verified after save in writeVerification.childRows. This is the full human payload reference for Stock Item Maintenance. The connector writes proven UOM rows, item sub-codes, price book rows, customer prices, supplier prices, opening balances, BOM rows, and replacement rows through AutoCount DLL child DataTables, then reloads the item and returns writeVerification.childRows. Batch rows use AutoCount NewItemBatch where enabled.","nativePayload":{"supported":true,"sections":[{"name":"Master","fields":[{"name":"ItemCode","type":"string","description":"Stock item code.","aliases":["itemCode"]},{"name":"Description","type":"string","description":"Item description.","aliases":["description"]},{"name":"BaseUOM","type":"string","description":"Base unit of measure.","aliases":["baseUOM","uom"]},{"name":"SalesUOM","type":"string","description":"Sales unit of measure.","aliases":["salesUOM"]},{"name":"PurchaseUOM","type":"string","description":"Purchase unit of measure.","aliases":["purchaseUOM"]},{"name":"ItemGroup","type":"string","description":"Item group/category.","aliases":["itemGroup"]},{"name":"TaxType","type":"string","description":"Default tax type/code.","aliases":["taxType","taxCode"]}]},{"name":"Details","fields":[]},{"name":"KnockOffDetails","fields":[]},{"name":"TransferDetails","fields":[]},{"name":"PaymentDetails","fields":[]},{"name":"Options","fields":[]}]}}