# API: Edit estimate details
# editEstimateDetails
Edit estimate details, all params except ID are optional.
# Required parameters
Parameter | Description |
---|---|
id | Estimate ID |
# Optional parameters
Parameter | Description |
---|---|
date_created | Sets estimate creation date |
date_expires | Sets estimate expiry date |
taxrate | Sets estimate Tax 1 rate (%, eg 10) |
taxrate2 | Sets estimate Tax 2 rate (%, eg 10) |
credit | Sets estimate credit, eg. 0.00 |
subject | Estimate subject |
client_id | Sets the estimated client ID |
notes | Sets new estimate notes |
currency_id | Currency ID |
status | Sets the estimated status [Draft |
# Request
GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=editEstimateDetails&id=ID
# PHP Samples
# 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": "[email protected]",
"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"
]
}