Skip to main content
PATCH
Update a quotation

Authorizations

x-api-key
string
header
required

API key for authentication. Get yours at app.heffl.com/settings/developers

Path Parameters

id
string
required

Quotation ID

Body

application/json
clientId
string

Contact or company ID (clt_ prefix)

contactId
string

Optional contact person ID (clt_ prefix) when clientId is a company

dealId
string

Deal ID (dl_ prefix)

templateId
string

Document template ID (tpl_ prefix)

date
string<date-time>

Quotation date

expiryDate
string<date-time>

Expiry date

subject
string

Subject

title
string

Internal title

status
enum<string>

Initial status (defaults to DRAFT)

Available options:
DRAFT,
SENT,
ACCEPTED,
REJECTED
isInclusiveTax
boolean

Whether prices include tax

contentHtml
string

Document HTML (defaults from template when omitted)

internalNotes
string

Internal notes

salesPersonId
string

Sales person user ID (usr_ prefix)

currency
string

ISO 4217 currency code

conversionRate
number

Quotation currency to team currency rate

quotationProducts
object[]

Line items

Minimum array length: 1
tags
string[]

Tag IDs (tag_ prefix)

{key}
any

Custom field values using cf_* keys

Response

OK

id
string
required

Quotation ID (qtn_ prefix)

number
string
required

Auto-generated quotation number

date
string<date-time>
required

Quotation date

status
enum<string>
required

Quotation status

Available options:
DRAFT,
SENT,
ACCEPTED,
REJECTED
currency
string
required

ISO 4217 currency code

createdAt
string<date-time>
required
subject
string | null

Subject

expiryDate
string<date-time> | null

Expiry date

conversionRate
number

Quotation currency to team currency rate

isInclusiveTax
boolean

Whether prices include tax

clientId
string | null

Contact or company ID (clt_ prefix)

contactId
string | null

Optional contact person ID (clt_ prefix) when clientId is a company

dealId
string | null

Deal ID (dl_ prefix)

salesPersonId
string | null

Sales person user ID (usr_ prefix)

templateId
string | null

Document template ID (tpl_ prefix)

contentHtml
string | null

Rendered document HTML

internalNotes
string | null

Internal notes

totalAmount
number

Total including tax

subtotalAmount
number

Subtotal before tax

totalTaxAmount
number

Total tax amount

totalDiscountAmount
number

Total discount amount

tagIds
string[]

Tag IDs (tag_ prefix)

lineItems
object[]

Line items (included on get; empty on list)

markedAcceptedOn
string<date-time> | null

When the quotation was accepted

markedRejectedOn
string<date-time> | null

When the quotation was rejected

updatedAt
string<date-time> | null
{key}
any

Custom field values using cf_* keys