API Guide Items- Estimates - Update a estimate

Estimates - Update a estimate

PUT yourdomain.com/api/estimates/:id

Header

json
Field Type Description
Authorization String

Basic Access Authentication token.

Parameter

json
Field Type Description
clientid String

Mandatory. Customer.

billing_street String

Mandatory. Street Address

billing_city (optional) String

Optional. City Name for billing

billing_state (optional) String

Optional. Name of state for billing

billing_zip (optional) Number

Optional. Zip code

billing_country (optional) Number

Optional. Country code

include_shipping (optional) boolean

Optional. set yes if you want add Shipping Address

Default value: no

show_shipping_on_estimate (optional) boolean

Optional. Shows shipping details in estimate.

shipping_street (optional) String

Optional. Address of shipping

shipping_city (optional) String

Optional. City name for shipping

shipping_state (optional) String

Optional. Name of state for shipping

shipping_zip (optional) Number

Optional. Zip code for shipping

shipping_country (optional) Number

Optional. Country code

number Number

Mandatory. Estimate Number

date Date

Mandatory. Estimate Date

expirydate (optional) Date

Optional. Expiry Date of Estimate

tags (optional) String

Optional. TAGS comma separated

currency Number

Mandatory. currency field

status Number

Mandatory. Estimate Status(eg. Draft, Sent)

reference_no (optional) String

Optional. Reference #

sale_agent (optional) Number

Optional. Sale Agent name

discount_type (optional) String

Optional. before_tax / after_tax discount type

adminnote (optional) String

Optional. notes by admin

items (optional) Array

Mandatory. Existing items with Id

removed_items (optional) Array

Optional. Items to be removed

newitems (optional) Array

Optional. New Items to be added

subtotal Decimal

Mandatory. calculation based on item Qty, Rate and Tax

total Decimal

Mandatory. calculation based on subtotal, Discount and Adjustment

clientnote (optional) String

Optional. client notes

terms (optional) String

Optional. Terms

Error 4xx

json
Name Type Description
number String

The Estimate number is already in use

HTTP/1.1 200 OK
{
  "status": false,
  "message": "Estimate Updated Successfully"
}
    HTTP/1.1 409 Conflict
    {
      "status": false,
      "error": {
			"number":"The Estimate number is already in use"
		},
		"message": "The Estimate number is already in use"
    }

Did you find this article useful?