Skip to content

Change a quote

PATCH
/api/v1/quotes/{id}
curl --request PATCH \
--url https://digize.com/api/v1/quotes/example \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "contactId": "example", "title": "example", "company": "example", "opportunityId": "example", "lines": [ { "id": "example", "productId": "example", "variantId": "example", "description": "example", "quantity": 1, "unitPrice": 1, "taxRateId": "example", "optional": true, "selected": true } ], "discount": 1, "notes": "example", "terms": "example", "depositKind": "none", "depositValue": 1, "issuedAt": "2026-04-15T12:00:00Z", "expiresAt": "2026-04-15T12:00:00Z" }'

Changes a quote nobody has answered yet. Lines replace the ones there.

Needs the crm:write permission.

id
required
string
>= 1 characters <= 64 characters
Idempotency-Key
string
>= 1 characters <= 255 characters

Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.

Example

5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69
Media typeapplication/json
object
contactId
string
>= 1 characters <= 64 characters
title
string
<= 120 characters
company
Any of:
string
<= 120 characters
opportunityId
Any of:
string
>= 1 characters <= 64 characters
lines
Array<object>
>= 1 items <= 100 items
object
id
string
<= 64 characters
productId
Any of:
string
<= 64 characters
variantId
Any of:
string
<= 64 characters
description
required
string
<= 500 characters
quantity
required
number
> 0 <= 100000
unitPrice
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
taxRateId
Any of:
string
<= 64 characters
optional
boolean
selected
boolean
discount

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
notes
Any of:
string
<= 2000 characters
terms
Any of:
string
<= 2000 characters
depositKind
string
Allowed values: none percent amount
depositValue

Basis points for a percent (5000 is 50%), else an amount.

integer
<= 100000000
issuedAt
string format: date-time
expiresAt
string format: date-time

Done

Media typeapplication/json
object
id
required
string
number
required
string
title
required
string
contact
required
object
id
required

The contact’s id.

string
name
required
string
email
required
string
company
required
string | null
opportunityId
required

The deal it’s for.

string | null
lines
required
Array<object>
object
id
required
string
productId
required
string | null
variantId
required
string | null
description
required
string
quantity
required
number
unitPrice
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
taxRateId
required
string | null
optional
required

A line the customer may leave out when they accept.

boolean
selected
required

Whether it’s in the total.

boolean
amount
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
discount
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
taxes
required
Array<object>
object
taxRateId
required

Null for the invoice’s own percent.

string | null
name
required
string
bps
required

Basis points: 825 is 8.25%.

number
taxable
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
amount
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
subtotal
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
tax
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
total
required

Of the lines that are in.

integer
<= 100000000
currency
required
string
notes
required
string | null
terms
required
string | null
deposit
required
object
kind
required
string
Allowed values: none percent amount
value
required

Basis points, or an amount.

number
amount
required

What it comes to on the total.

integer
<= 100000000
status
required
string
Allowed values: draft sent viewed accepted declined expired void
issuedAt
required
string format: date-time
expiresAt
required
string format: date-time
sentAt
required
Any of:
string format: date-time
viewedAt
required
Any of:
string format: date-time
acceptedAt
required
Any of:
string format: date-time
declinedAt
required
Any of:
string format: date-time
declineReason
required
string | null
acceptance
required
Any of:
object
name
required
string
ip
required
string
at
required
string format: date-time
invoiceId
required

The invoice it became.

string | null
url
required

Where the customer reads and accepts it.

string

Example

{
"deposit": {
"kind": "none"
},
"status": "draft"
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

A request with the same Idempotency-Key is still running (conflict).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The Idempotency-Key was used with a different request.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}