Skip to main content
POST

Create an estimate

Scope:sales:estimates.write
https://api.holded.com/api/v2/estimates

Creates a new estimate (quote) for a contact. Estimates are proposals you send to clients before confirming a sale. They can later be converted into invoices or sales orders. You must provide a `contact_id` referring to an existing contact. Include line items in the `items` array. The response returns the new estimate `id`.

Request body

object
contact_idstringrequired

Identifier of an existing contact

contact_namestringoptional

Name of the contact

descriptionstring | nulloptional

Free-text description

datestring<date>optional

Issue date in ISO 8601 format. Accepts date (YYYY-MM-DD) or datetime (e.g. 2026-01-15T00:00:00+00:00)

due_datestring<date> | nulloptional

Expiry date in ISO 8601 format. Accepts date (YYYY-MM-DD) or datetime (e.g. 2026-01-15T00:00:00+00:00)

notesstring | nulloptional

Internal notes visible only to your team

default_taxesbooleanoptional

When true, a line with no taxes of its own, not linked to a catalog product or service, for a contact without default taxes takes the account's default taxes: its sales taxes on a sales document, its purchases taxes on a purchase document. When false or omitted, such a line is created untaxed.

default: false
bodystring | nulloptional

Rich-text content printed on the estimate

languagestring | nulloptional

ISO 639-1 language code

currencystring | nulloptional

ISO 4217 currency code

currency_changenumber<float> | nulloptional

Exchange rate

items[]object[]required

Line items to include

namestring
typestring | null

Kind of line. `product` and `service` are billable lines whose amount (`units` × `price`, less `discount`, plus `taxes`) is added to the document total. `title` is a section-header line that shows only its `name` and carries no amount — it does not contribute to the total. Other values are special-purpose lines. Omit this field for an ordinary priced line item.

Enum:producttitleservice
descriptionstring | null
product_idstring | null

Identifier of an existing catalog product to link this line to. The id is stored as a reference associating the line with the product (used for stock and reporting). Each line field (`price`, `taxes`, ...) is taken as sent; api2 stores the line values you provide and does not itself read them back from the product record. Leave unset for a free-text line that is not a catalog product.

variant_idstring | null

Identifier of the variant of `product_id` to link this line to. Requires `product_id`. Leave unset for a line without variant.

service_idstring | null

Identifier of an existing catalog service to link this line to. When provided, the line type is automatically set to `service`. Leave unset for a free-text line that is not a catalog service.

unitsnumber | null
pricenumber | null
discountnumber | null
taxes[]string[] | null

Tax keys applied to this line. When omitted, the contact default tax applies, or, if the contact has none, the account default tax when the request asks for it, else no tax.

skustring | null
accountstring | null
project_idstring | null
unit_typestring | null
suppliedboolean | null

Whether this line is a supply expense (suplido) paid on behalf of the client. Excluded from the tax base.

tags[]string[]optional

Tags to attach

custom_fields[]object[]optional

Custom field values

fieldstring

Custom field identifier

valuestring

Value stored in the custom field

numberstring | nulloptional

Custom document number. Use only if you do not want to assign the number via one of the numbering series created in Holded (e.g. to replicate exactly the number from another platform). The value is saved as-is, without correlativity validation. If this field is sent, number_line_id is ignored. Warning: do not use a value that matches the format of an existing numbering series. The series keeps its own counter regardless of manually assigned numbers -- e.g. if a series is at number 24 and you manually create a document with 27, the series will keep issuing 25, 26, and when it reaches 27 it will try to create a number that already exists: the request will fail and the series will have lost its correlativity and order. If you need custom numbering, use a prefix or format that does not match any active series, or manage every document in that series with number_line_id.

number_line_idstring | nulloptional

Identifier of the numbering series used to automatically assign the next correlative number. This is the recommended option, as it preserves the document order and correlativity. If both fields are sent, number takes priority and number_line_id is ignored.

sales_channel_idstring | nulloptional

Identifier of the sales channel

discountnumber | nulloptional

Global discount percentage

payment_method_idstring | nulloptional

Identifier of the default payment method

design_idstring | nulloptional

Identifier of the design template to apply to the document

show_totalboolean | nulloptional

Whether to show the total row in the PDF

tax_includedboolean | nulloptional

Whether prices are tax-included

Request

python
import requests

url = "https://api.holded.com/api/v2/estimates"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "contact_id": "string",
    "contact_name": "string",
    "description": "string",
    "date": "2026-01-15",
    "due_date": "2026-01-31",
    "notes": "string",
    "default_taxes": false,
    "body": "string",
    "language": "es",
    "currency": "EUR",
    "currency_change": 0,
    "items": [
        {
            "name": "string",
            "type": "product",
            "description": "string",
            "product_id": "string",
            "variant_id": "string",
            "service_id": "string",
            "units": 0,
            "price": 0,
            "discount": 0,
            "taxes": [
                "s_iva_21"
            ],
            "sku": "string",
            "account": "string",
            "project_id": "string",
            "unit_type": "string",
            "supplied": false
        }
    ],
    "tags": [
        "string"
    ],
    "custom_fields": [
        {
            "field": "string",
            "value": "string"
        }
    ],
    "number": "string",
    "number_line_id": "string",
    "sales_channel_id": "string",
    "discount": 0,
    "payment_method_id": "string",
    "design_id": "string",
    "show_total": false,
    "tax_included": false
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "507f1f77bcf86cd799439011"
}

Success responses

201Estimate createdapplication/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
422Validation errorapplication/json
429Rate limit exceededapplication/json