Update a draft quote

PUThttps://app.speybooks.com/api/v1/quotes/{id}

Replace a draft quote. Only quotes in draft status can be modified; sent, accepted, declined, and converted quotes are immutable.

This is a full replacement, not a partial update: contactId, issueDate, validUntil, and lines are required on every request, existing lines are deleted and replaced with the new set, and totals are recomputed. A quote that does not exist or is not in draft status is rejected.

Path parameters

idstringrequired

Body parameters

contactIdstringrequired
issueDatestringrequired
linesarray<object>required
Show child parameters
descriptionstringrequired
quantitystringrequired
unitPricestringrequired
vatRateintegerrequired
min: 0 · max: 100
accountIdstringoptional
validUntilstringrequired
notesstringoptional
referencestringoptional

Response

200Quote updated.
Show response fields
quoteNumberstring

Error codes

400Quote is not in draft status.
404Quote not found.