Edit Estimate
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
PUT
{{subdomain}}/api2
Last modified:2025-04-20 12:10:30
Maintainer:Not configured
id
: Estimate ID (required)date
(string): Estimate date (YYYY-MM-DD)expiry_date
(string): Expiry date (YYYY-MM-DD)notes
(string): Estimate notesdiscount
(number): Estimate-level discount amountdiscount_type
(integer): Discount type (1: percentage, 2: fixed amount)status
(integer): Status (0: draft, 1: sent, 2: accepted, 3: declined)id
along with the fields to updateid
field and include required item fields{
"result": "success",
"code": 200,
"data": {
"Estimate": {
"id": 234,
// Updated estimate fields...
}
},
"message": "Estimate updated successfully"
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '{{subdomain}}/api2/api2/estimates/{{id}}.json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"Estimate": {
"date": "2023-03-24",
"notes": "Updated estimate with revised scope",
"discount": 5,
"discount_type": 1,
"InvoiceItem": [
{
"id": 567,
"quantity": 4,
"unit_price": 95
},
{
"product_id": 3,
"quantity": 1,
"unit_price": 75,
"description": "New item added during update"
}
]
}
}'
Response Response Example
200 - Success Response
{
"result": "success",
"code": 200,
"data": {
"Estimate": {
"id": 234,
"number": "EST-2023-001",
"client_id": 15,
"date": "2023-03-24",
"expiry_date": "2023-04-19",
"total": 350,
"notes": "Updated estimate",
"modified": "2023-03-23 16:45:22"
}
},
"message": "Estimate updated successfully"
}
Request
Body Params text/plain