---
updatedAt: 2026-10-12T15:05:31.000Z
agentTools:
  projectIndex: https://wafeq.readme.io/llms.txt
---

# Update quote

Endpoint for updating an existing quote.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "CurrencyEnum": {
        "description": "An ISO 4217 currency code.\n\n[View the enum reference](currencyenum)",
        "enum": [
          "AED",
          "SAR",
          "USD",
          "EUR",
          "CAD",
          "AFN",
          "ALL",
          "AMD",
          "ARS",
          "AUD",
          "AZN",
          "BAM",
          "BDT",
          "BGN",
          "BHD",
          "BIF",
          "BND",
          "BOB",
          "BRL",
          "BWP",
          "BYN",
          "BZD",
          "CDF",
          "CHF",
          "CLP",
          "CNY",
          "COP",
          "CRC",
          "CVE",
          "CZK",
          "DJF",
          "DKK",
          "DOP",
          "DZD",
          "EGP",
          "ERN",
          "ETB",
          "GBP",
          "GEL",
          "GHS",
          "GNF",
          "GTQ",
          "HKD",
          "HNL",
          "HRK",
          "HUF",
          "IDR",
          "ILS",
          "INR",
          "IQD",
          "IRR",
          "ISK",
          "JMD",
          "JOD",
          "JPY",
          "KES",
          "KHR",
          "KMF",
          "KRW",
          "KWD",
          "KZT",
          "LBP",
          "LKR",
          "LYD",
          "MAD",
          "MDL",
          "MGA",
          "MKD",
          "MMK",
          "MOP",
          "MUR",
          "MXN",
          "MYR",
          "MZN",
          "NAD",
          "NGN",
          "NIO",
          "NOK",
          "NPR",
          "NZD",
          "OMR",
          "PAB",
          "PEN",
          "PHP",
          "PKR",
          "PLN",
          "PYG",
          "QAR",
          "RON",
          "RSD",
          "RUB",
          "RWF",
          "SDG",
          "SEK",
          "SGD",
          "SOS",
          "SYP",
          "THB",
          "TND",
          "TOP",
          "TRY",
          "TTD",
          "TWD",
          "TZS",
          "UAH",
          "UGX",
          "UYU",
          "UZS",
          "VES",
          "VND",
          "XAF",
          "XOF",
          "YER",
          "ZAR",
          "ZMW"
        ],
        "type": "string"
      },
      "EstimateStatusEnum": {
        "description": "The current lifecycle status of an estimate.\n\n[View the enum reference](estimatestatusenum)",
        "enum": [
          "DRAFT",
          "SENT",
          "INVOICED"
        ],
        "type": "string"
      },
      "LanguageEnum": {
        "description": "The language of a document or response.\n\n[View the enum reference](languageenum)",
        "enum": [
          "en",
          "ar"
        ],
        "type": "string"
      },
      "TaxAmountTypeEnum": {
        "description": "Whether amounts include or exclude tax.\n\n[View the enum reference](taxamounttypeenum)",
        "enum": [
          "TAX_INCLUSIVE",
          "TAX_EXCLUSIVE"
        ],
        "type": "string"
      },
      "api-v1-estimate": {
        "description": "A quote offered to a customer.",
        "properties": {
          "amount": {
            "description": "The total amount of the quote, including taxes.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "readOnly": true,
            "type": "number"
          },
          "attachments": {
            "description": "Any files or documents attached to this quote.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "branch": {
            "description": "The branch associated with this quote.",
            "type": [
              "string",
              "null"
            ]
          },
          "contact": {
            "description": "The contact (customer) associated with this quote.",
            "type": "string"
          },
          "created_ts": {
            "description": "The timestamp in UTC when the invoice was created.",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyEnum"
              }
            ],
            "description": "The currency code for the quote.\n\n[View the enum reference](currencyenum)"
          },
          "custom_fields": {
            "additionalProperties": {},
            "description": "A mapping of custom field IDs to their values.",
            "type": "object"
          },
          "discount_account": {
            "description": "The account to which the discount will be booked, if applicable.",
            "type": "string"
          },
          "discount_amount": {
            "description": "The discount amount to apply to the invoice.",
            "exclusiveMaximum": 10000000000000000,
            "format": "double",
            "minimum": 0,
            "type": "number"
          },
          "discount_cost_center": {
            "description": "The cost center associated with the discount, if applicable.",
            "type": "string"
          },
          "discount_tax_rate": {
            "description": "The tax rate applied to the discount, if applicable: the ID of the tax rate (`tax_…`). List the tax rates of the organization with GET /v1/tax-rates/.",
            "type": "string"
          },
          "exchange_rate": {
            "description": "The exchange rate to the organization base currency at the time of the document.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "external_id": {
            "default": "",
            "description": "External identifier for the quote.",
            "maxLength": 255,
            "type": "string"
          },
          "id": {
            "description": "The unique identifier of the quote.",
            "readOnly": true,
            "type": "string"
          },
          "language": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LanguageEnum"
              }
            ],
            "default": "en",
            "description": "The language in which the quote is written.\n\n[View the enum reference](languageenum)"
          },
          "legacy_id": {
            "description": "[Deprecated] The legacy identifier of the quote.",
            "readOnly": true,
            "type": "string"
          },
          "line_items": {
            "description": "The individual line items included in this quote.",
            "items": {
              "$ref": "#/components/schemas/api-v1-estimate-line-item"
            },
            "type": "array"
          },
          "modified_ts": {
            "description": "The timestamp in UTC when the invoice was last modified.",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "notes": {
            "description": "Additional notes or comments about the invoice.",
            "type": "string"
          },
          "project": {
            "description": "The project associated with this quote, if applicable.",
            "type": [
              "string",
              "null"
            ]
          },
          "purchase_order": {
            "description": "An optional purchase order number or code for this quote.",
            "type": "string"
          },
          "quote_date": {
            "description": "The date when the quote was issued.",
            "format": "date",
            "type": "string"
          },
          "quote_number": {
            "description": "The number assigned to this quote.",
            "type": "string"
          },
          "reference": {
            "description": "An optional reference number or code for this quote.",
            "type": "string"
          },
          "rounding_amount": {
            "description": "The payable rounding amount for tax inclusive documents.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "readOnly": true,
            "type": "number"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EstimateStatusEnum"
              }
            ],
            "default": "DRAFT",
            "description": "The current status of the quote (draft, sent, or invoiced).\n\n[View the enum reference](estimatestatusenum)"
          },
          "tax_amount": {
            "description": "The total tax amount applied to this quote.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "readOnly": true,
            "type": "number"
          },
          "tax_amount_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TaxAmountTypeEnum"
              }
            ],
            "description": "Specifies whether the tax amount is inclusive or exclusive.\n\n[View the enum reference](taxamounttypeenum)"
          }
        },
        "required": [
          "amount",
          "contact",
          "created_ts",
          "currency",
          "id",
          "legacy_id",
          "line_items",
          "modified_ts",
          "quote_date",
          "quote_number",
          "rounding_amount",
          "tax_amount"
        ],
        "type": "object"
      },
      "api-v1-estimate-line-item": {
        "description": "A line item of a quote.",
        "properties": {
          "cost_center": {
            "description": "The cost center associated with this line item.",
            "type": "string"
          },
          "created_ts": {
            "description": "The timestamp in UTC when the line item was created.",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "custom_fields": {
            "additionalProperties": {},
            "description": "A mapping of custom field IDs to their values.",
            "type": "object"
          },
          "description": {
            "description": "The detailed description of the line item.",
            "type": "string"
          },
          "discount": {
            "description": "The discount as the percentage.",
            "exclusiveMaximum": 10000000000000000,
            "format": "double",
            "minimum": 0,
            "type": [
              "number",
              "null"
            ]
          },
          "id": {
            "description": "The unique identifier of the line item.",
            "readOnly": true,
            "type": "string"
          },
          "item": {
            "description": "The item associated with this line item.",
            "type": "string"
          },
          "item_unit_of_measure": {
            "description": "The item unit of measure for this line item.",
            "type": [
              "string",
              "null"
            ]
          },
          "legacy_id": {
            "description": "[Deprecated] The legacy identifier of the line item.",
            "readOnly": true,
            "type": "string"
          },
          "line_amount": {
            "description": "The total amount for this line item (quantity * unit_amount).",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "readOnly": true,
            "type": "number"
          },
          "modified_ts": {
            "description": "The timestamp in UTC when the line item was last modified.",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "order": {
            "description": "The position of the line item within the document.",
            "type": "integer",
            "writeOnly": true
          },
          "quantity": {
            "description": "The quantity of the item or service.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "type": "number"
          },
          "tax_amount": {
            "description": "The total tax amount for this line item.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "readOnly": true,
            "type": "number"
          },
          "tax_rate": {
            "description": "The tax rate applied to this line item: the ID of the tax rate (`tax_…`). List the tax rates of the organization with GET /v1/tax-rates/. Add `expand=line_items.tax_rate` to get the full tax rate in the response.",
            "type": "string"
          },
          "unit_amount": {
            "description": "The price per unit of the item or service.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "created_ts",
          "description",
          "id",
          "legacy_id",
          "line_amount",
          "modified_ts",
          "quantity",
          "tax_amount",
          "unit_amount"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "APIKeyAuth": {
        "description": "__An API key that will be supplied in  `Authorization` header.__\n\nExample:\n`Api-Key vVLOU1BB.aKz8GWaAGz0w1fO997aCMskNfS0ZpwjS`",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey",
        "x-default": "Api-Key replace_with_your_api_key"
      }
    }
  },
  "info": {
    "title": "Wafeq Public API",
    "version": "v1"
  },
  "openapi": "3.1.1",
  "paths": {
    "/quotes/{id}/": {
      "put": {
        "description": "Endpoint for updating an existing quote.",
        "operationId": "quotes_update",
        "parameters": [
          {
            "description": "Client-provided UUID to uniquely identify a request",
            "in": "header",
            "name": "X-Wafeq-Idempotency-Key",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comma-separated related objects to return in full instead of as IDs. Accepted values: `attachments`, `branch`, `contact`, `contact.persons`, `line_items`, `line_items.item`, `line_items.tax_rate`, `line_items.cost_center`, `project`, `discount_cost_center`. Nested relations are joined with a dot.",
            "in": "query",
            "name": "expand",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/api-v1-estimate"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/api-v1-estimate"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/api-v1-estimate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/api-v1-estimate"
                }
              }
            },
            "description": "",
            "headers": {
              "X-Wafeq-Idempotent-Replayed": {
                "description": "Indicates whether response was served from cache",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyAuth": []
          }
        ],
        "summary": "Update quote",
        "tags": [
          "Quotes"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Wafeq API Base URL",
      "url": "https://api.wafeq.com/v1"
    }
  ],
  "x-readme": {
    "proxy-enabled": false,
    "samples-languages": [
      "shell",
      "http"
    ]
  }
}
```