products in deals(crm) to est in books

products in deals(crm) to est in books

Hi,
Can anyone help here please?
Why do I get only the description and total amount of a deal by doing a conversion from deal to estimate.
See the deluge code below:

respQuote = zoho.crm.getRecordById("Quotes",quotesId);
//-- we are getting these details from quotes
acctid = ifnull(respQuote.get("CONTACTID"),"");
info acctid;
invoicedate = ifnull(respQuote.get("Quote Date"),"");
duedate = ifnull(respQuote.get("Due Date"),"");
sales = ifnull(respQuote.get("Salesperson"),"");
products = respQuote.get("product").toJSONList();
lineItem1 = "";
totaldisc = 0.0;
for each  prod in products
{
Quantity = prod.get("quantity");
List_Price = prod.get("list_price");
Product_details = prod.get("product").get("name");
minimap = {"name":Product_details,"rate":List_Price,"quantity":Quantity};
lineItem1.add(minimap);
}
resultget = getUrl("https://books.zoho.com/api/v3/contacts/?authtoken=XXXXXXXXX &organization_id=YYYYYYYY &zcrm_contact_id=" + acctid).toMap();
info resultget;
Contacts = resultget.get("contacts").toJSONList();
for each  f in Contacts
{
dd = f.getJSON("contact_id");
info dd;
}
requestBody = {"customer_id":dd,"date":invoicedate,"Salesperson":sales,"due_date":duedate,"line_items":{lineItem1}};
params = {"authtoken":"XXXXXXXXX","organization_id":"YYYYYYYY","send":false,"ignore_auto_number_generation":false,"JSONString":requestBody};
r = postUrl("https://books.zoho.com/api/v3/estimates",params);
//info params;
info r;
return "";

I want the products quotes in the deals/crm to be converted to an estimate in books on detailed level.

Many thanks

Marc