Create a new quote
POST
https://app.speybooks.com/api/v1/quotes/Create a new quote, in draft status by default (status may
be set to sent to create and issue in one call). Requires at
least one line item.
Line quantity and unitPrice are exact decimal strings and
must be strictly positive; unitPrice is in pounds. vatRate
is an integer percent. The quote number is auto-generated from
the organisation's quote numbering sequence, and totals are
computed server-side with exact decimal arithmetic.
Contact ID and optional per-line account IDs are validated and resolved from their prefixed API format.
Body parameters
contactIdstringrequiredContact ID (e.g. cont_3).
issueDatestringrequiredQuote issue date (YYYY-MM-DD).
linesarray<object>requiredShow child parameters
descriptionstringrequiredLine item description.
quantitystringrequiredQuantity as exact decimal string.
unitPricestringrequiredUnit price as exact decimal pounds string.
vatRateintegerrequiredVAT rate as integer percent.
accountIdstringoptionalChart of accounts ID to post to (e.g. acc_4010).
validUntilstringrequiredQuote expiry date (YYYY-MM-DD).
notesstringoptionalOptional notes visible on the quote.
referencestringoptionalOptional client-facing reference.
Response
201Quote created in draft status with auto-generated quote number.
Show response fields
idstringquoteNumberstring