API:editEstimateDetails - Edit estimate details

Edit estimate details, all params except ID are optional.

Required parameters

id
Estimate ID

Optional parameters

date_created
Sets estimate creation date
date_expires
Sets estimate expiry date

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=editEstimateDetails&id=ID

Response

   {
      "success": true,
      "estimate": {
         "id": "1",
         "status": "Sent",
         "subject": "Server maintenance [hours]",
         "client_id": "3",
         "date_created": "2011-08-10",
         "date_expires": "2011-08-17",
         "subtotal": "60.00",
         "credit": "0.00",
         "tax": "0.00",
         "taxrate": "20.00",
         "tax2": "0.00",
         "taxrate2": "0.00",
         "total": "60.00",
         "currency_id": "0",
         "rate": "1.0000",
         "notes": "",
         "notes_private": "",
         "hash": "c51ce410c124a10e0db5e4b97fc2af39",
         "items": [
            {
               "id": "1",
               "estimate_id": "1",
               "item_id": "0",
               "type": "Other",
               "description": "Server maintenance [hours]",
               "amount": "20.00",
               "taxed": "0",
               "qty": "3",
               "linetotal": 60
            }
         ],
         "client": {
            "id": "3",
            "email": "4_john@doe123.com",
            "lastlogin": "2011-09-09 12:45:25",
            "ip": "127.0.0.1",
            "host": "127.0.0.1",
            "status": "Active",
            "parent_id": "0",
            "firstname": "John",
            "lastname": "Doe",
            "companyname": "",
            "address1": "Doeville",
            "address2": "",
            "city": "Doevan",
            "state": "Arkansas",
            "postcode": "1A-2V",
            "country": "US",
            "phonenumber": "1-123-456879",
            "datecreated": "2011-06-24",
            "notes": "",
            "language": "english",
            "company": "0",
            "credit": "100.00",
            "taxexempt": "0",
            "latefeeoveride": "0",
            "overideduenotices": "0",
            "client_id": "3",
            "cardnum": "",
            "currency_id": "1",
            "privileges": null,
            "howdidyou": "Other"
         }
      },
      "call": "editEstimateDetails",
      "server_time": 1317713869,
      "info": [
         "Estimate details updated"
      ]
   }