item variables

item variables

Can't get the following field values in Custom functions ? .....

VAT (Tax)
Reorder point
Preferred Vendor

Can you help me please Zoho experts ?

And if you could also kindly tell me how to use the correct syntax for the following please, I know you have experts that we can employ but I really enjoy learning & doing it myself :-) ...

myFileID = "123456";
itemName = "myTestItem";
Unit = "box of 10";
mySKU = "54321";
myItemRate = #.##;
pr = #.##;
myCustomField = "abcd"

Item_Details = map();
Item_Details.put("item_type", "inventory");
Item_Details.put("purchase_rate", pr);
//Item_Details.put("zcrm_product_id", "");
Item_Details.put("tax_id", "");
Item_Details.put("unit", Unit);
//Item_Details.put("account_id", "#####000000000###");
Item_Details.put("rate", myItemRate);
Item_Details.put("account_name", "Sales");
Item_Details.put("name", newRange);
Item_Details.put("tax_percentage", 0);
Item_Details.put("SKU", mySKU);
Item_Details.put("status", "active");
Item_Details.put("myCustomFieldName", myCustomField); // would this be correct ?
//info Item_Details;

Response = zoho.books.createRecord("items",myFileID, Item_Details);
info Response;


Been having too many errors, latest being :  response = {"code":"2025","message":"Invalid product type"}