Quotes
A quote is a priced proposal a business workspace makes for one
project, or for a client alone while there is no project
yet (a client-only quote). It starts as a draft you can edit freely;
sending it assigns its number and freezes it. A change after that is a new
version, never an edit. Quotes exist only in
business workspaces: every operation below returns
409 WORKSPACE_NOT_BUSINESS in a personal workspace. They are part of the Solo
Business plan.
All paths are under /v1/workspaces/{workspaceID}. Quote IDs start with qte_,
quote line IDs with qln_.
| Operation | Method and path | Scope |
|---|---|---|
list-quotes | GET /quotes | quotes:read |
get-quote | GET /quotes/{quoteID} | quotes:read |
get-quote-pdf | GET /quotes/{quoteID}/pdf | quotes:read |
create-quote | POST /quotes | quotes:write |
update-quote | PATCH /quotes/{quoteID} | quotes:write |
delete-quote | DELETE /quotes/{quoteID} | quotes:write |
send-quote | POST /quotes/{quoteID}/send | quotes:write |
accept-quote | POST /quotes/{quoteID}/accept | quotes:write |
decline-quote | POST /quotes/{quoteID}/decline | quotes:write |
create-quote-version | POST /quotes/{quoteID}/versions | quotes:write |
link-quote-project | POST /quotes/{quoteID}/link-project | quotes:write |
start-quote-project | POST /quotes/{quoteID}/start-project | quotes:write and projects:write |
create-quote-line | POST /quotes/{quoteID}/lines | quotes:write |
update-quote-line | PATCH /quotes/{quoteID}/lines/{lineID} | quotes:write |
delete-quote-line | DELETE /quotes/{quoteID}/lines/{lineID} | quotes:write |
reorder-quote-lines | POST /quotes/{quoteID}/lines/reorder | quotes:write |
The quotes:write scope is not offered to connected apps (OAuth or MCP clients),
even with read and write access; quotes:read is. See
Scopes.
Writes need the role editor, admin or owner. Viewers can read. A non-member gets
404, never 403, so a workspace's existence isn't revealed.
The quote object
{
"id": "qte_...",
"projectId": "prj_...",
"clientId": "cli_...",
"version": 1,
"supersedesId": null,
"supersededById": null,
"status": "sent",
"number": "Q-ACME-001",
"title": "Website redesign",
"intro": "Thanks for the chat on Monday.",
"notes": "This quote does not include photography or video that needs to be purchased.",
"terms": "50% deposit, balance on delivery.",
"footer": "Thank you for your business.",
"paymentText": "Pay the deposit by bank transfer to Fabricated Bank, ref. Q-ACME-001.",
"validUntil": "2026-12-31",
"depositPercentBps": 5000,
"depositAmount": { "minor": 25575, "display": "$255.75" },
"subtotal": { "minor": 51150, "display": "$511.50" },
"taxTotal": { "minor": 0, "display": "$0.00" },
"taxes": [],
"total": { "minor": 51150, "display": "$511.50" },
"lineCount": 2,
"metadata": { "external_id": "ABC-123" },
"lines": [
{
"id": "qln_...",
"quoteId": "qte_...",
"taskId": "ptsk_...",
"position": 0,
"description": "Wireframes",
"details": "- Low-fidelity screens\n- **Two** review rounds",
"unit": "item",
"quantityE4": 30000,
"unitPrice": { "minor": 12550, "display": "$125.50" },
"discountBps": 0,
"total": { "minor": 37650, "display": "$376.50" },
"createdAt": "2026-11-12T10:00:00Z",
"updatedAt": "2026-11-12T10:00:00Z"
}
],
"sentAt": "2026-11-12T10:05:00Z",
"businessSnapshot": { "legalName": "Studio Ltd", "address": "1 Example Road", "taxId": "TAX-123" },
"clientSnapshot": { "id": "cli_...", "name": "Acme", "code": "ACME", "taxId": "" },
"currencySnapshot": { "code": "USD", "symbol": "$", "symbolPosition": "before", "precision": 2, "decimalSeparator": ".", "groupSeparator": "," },
"sentAt": "2026-11-12T10:05:00Z",
"acceptedAt": null,
"declinedAt": null,
"expired": false,
"converted": false,
"fullyBilled": false,
"billedAmount": { "minor": 0, "display": "$0.00" },
"createdAt": "2026-11-12T10:00:00Z",
"updatedAt": "2026-11-12T10:05:00Z"
}
- Project and client. Every quote has a
clientId.projectIdis nullable: it isnullon a client-only quote until the quote is linked to a project, so read it as nullable. When creating, send aprojectId, aclientIdor both. AprojectIdmust name a project of the workspace that isn't archived (404PROJECT_NOT_FOUND,409PROJECT_ARCHIVED) and the quote'sclientIdis then the project's; naming a different client as well is422QUOTE_CLIENT_MISMATCH. With only aclientIdthe client must exist in the workspace (404CLIENT_NOT_FOUND) and not be archived (409QUOTE_CLIENT_ARCHIVED). A quote's client never changes. A quote's project is set once, by linking a client-only quote; a quote that has a project can't move to another, andupdate-quotetakes noprojectId. titleis required, up to 200 characters.intro,notesandtermsare free text up to 4000 characters each. Lengths are counted in characters. On the PDF, the shared page and the quote page they appear in this order:introabove the lines, then the lines and totals, thennotes(headed "Notes"), thenterms, then the payment details and the footer.notesis for scope notes and exclusions; it is empty unless you set it, is edited and frozen likeintroandterms, and is copied to a new version. It is not copied to invoices made from the quote.- When you create a quote and leave
termsout, it starts from the business profile'squoteDefaultTerms(empty until set). Send an empty string to start with none. The quote keeps its own copy: later changes to the default don't touch it, and existing quotes never change. footerandpaymentTextare free text up to 2000 characters, printed as the quote's footer and under "Payment details". When you create a quote and leave them out, they start from the business profile'squoteDefaultFooterandquoteDefaultPaymentText(which start empty; the invoice defaults are not used). Send an empty string to start with none. The quote keeps its own copy: later changes to the defaults don't touch it. They are edited likeintroandtermswhile the quote is a draft, frozen when it is sent, and copied to a new version.statusis one ofdraft,sent,accepted,declinedandsuperseded(see Lifecycle). Only stored statuses appear here.numberis empty until the quote is sent, then final (see Number on send).businessSnapshot,clientSnapshotandcurrencySnapshotare taken when the quote is sent and never change afterwards, whatever happens to the business profile, the client or the workspace's money format. The quote's PDF is rendered from them.businessSnapshot.logo(attachmentId,sha256) names the logo the quote was sent with and is absent when there was none.businessSnapshot.phoneandbusinessSnapshot.contactEmailare the business's contact details when it was sent, omitted when empty. A draft has none. A quote sent before they were kept has none either, and its PDF uses the current details but has no logo.validUntilis the last day the quote can be accepted, a calendar date (YYYY-MM-DD) in the workspace's time zone. It can't be in the past when you set it.- Lines and totals.
subtotalis the sum of the line totals, before tax;taxTotalis the tax;totalis the gross total,subtotal + taxTotal. They are always computed from the lines, never stored on the quote.taxeshas one row per tax rate (name,percentE4,taxable,tax) and is[]when no line is taxed; thentaxTotalis zero andtotalequalssubtotal, the sum of the line totals. Don't add line totals to get the quote total: tax is rounded once per rate on the whole quote, not per line (see Totals and tax).linesis returned byget-quoteand the write operations that return a quote;list-quotesleaves the lines out and returnslineCount. - Derived flags.
expiredis true while the quote issentand itsvalidUntildate has passed in the workspace's time zone (an accepted or declined quote is not expired).convertedis true once the quote has invoices,billedAmountis what has been invoiced against it andfullyBilledis true when the quote has invoices andbilledAmounthas reached thesubtotal. Billing is counted before tax, so tax never makes a quote look over-billed. None of these are stored, so they can't drift.convertedcounts every invoice that isn't void, drafts included (a quote can't be versioned from under a draft), whilebilledAmountcounts only issued ones. Voiding an invoice releases its quote lines again.billedAmountincludes deposits billed against the quote and takes applied deposits off again; see Deposit and progress billing, whereget-quote-billingreports billed against quoted per line.
list-quotes takes projectId, clientId (quotes of that client, for one of its
projects or for the client alone), noProject=true (only client-only quotes,
the ones not linked to a project yet; not together with projectId, which is
422 VALIDATION_FAILED), status (a stored status), number (an exact match),
page and pageSize (default 100, max 1000) and returns
{ quotes, total, page, pageSize }, newest first.
Lines
descriptionis required, up to 500 characters, on one line. It is the line's item and is always plain text.detailsis optional longer text shown under the item, up to 4,000 characters, in restricted Markdown (bullets, numbered lists, bold and italic; see Formatting). Responses always carry it (""when empty). Send""toupdate-quote-lineto clear it. A new version of a quote and an invoice that bills a quote line copy it.unitis what the line is billed in:item(the default when it is left out),hourorfixed. It decides how the line reads on the PDF; the total is alwaysquantity × unit price. Afixedline is a single fee: its quantity is always one unit (quantityE4: 10000), so leavequantityE4out or send10000, and put the fee inunitPriceMinor. Any other quantity on afixedline is422VALIDATION_FAILED. Changing a line tofixedwithupdate-quote-lineresets its quantity to one. Lines that existed before units areitem.quantityE4is the quantity in ten-thousandths of a unit, so15000is 1.5 (1.5 hours for anhourline). It must be above zero and at most 1,000,000 units (10000000000), and is required unless the unit isfixed.unitPriceMinoris the price of one unit (the hourly rate of anhourline, the fee of afixedline) in the workspace's minor unit (cents at currency precision 2, like every other amount in the API); responses returnunitPriceas{ minor, display }. It can't be negative and is range-checked (amountOutOfRange). Amounts are stored with four decimal places internally.discountBpsis the line discount in basis points:1000is 10%, from0to10000. Discounts are per line.taskIdis optional and ties the line to a task of the quote's project (404PROJECT_TASK_NOT_FOUNDfor any other task). A task a quote line is priced from can't be deleted. A client-only quote has no project, so a line can't take a task:422QUOTE_HAS_NO_PROJECT. Item, hour and fixed lines work as on any quote.taxRateIdis optional and sets the line's tax rate; see Tax on lines.- The line total is
quantity × unit price, less the discount, rounded half-up to the currency's precision once per line, with checked arithmetic. The server computes it on every write and returns it astotal; a total that can't be stored is refused (amountOutOfRange) instead of wrapping. The line total is always before tax. - A quote holds up to 200 lines (
tooManyQuoteLines). Lines are ordered byposition; a new line goes to the end.reorder-quote-linestakeslineIds, which must name every line of the quote exactly once, and returns the lines in the new order.update-quote-linecan also setpositiondirectly. - On
update-quote-line, fields left out are unchanged; listtaskinclearto remove the task link.
Tax on lines
A line can carry one tax rate of the business: sales tax, VAT or GST. Prices and line totals stay before tax; the tax is added on the quote. Budget Thing adds the tax you choose. It doesn't check which rates or invoice rules apply to you. This isn't tax advice.
create-quote-line and update-quote-line take an optional taxRateId:
| Field left out | "" (empty string) | A rate ID | |
|---|---|---|---|
| Create | The workspace's default rate; no tax when there is no default. | No tax. | That rate. 404 TAX_RATE_NOT_FOUND if it isn't a rate of the workspace, 422 TAX_RATE_ARCHIVED if it is archived. |
| Update | The line keeps its rate. An update never falls back to the default. | Removes the tax. | Sets that rate; the same errors. A line may keep a rate that was archived since. |
Because of the create rule, setting or clearing the default rate changes what
new lines get when taxRateId is omitted. Send "" to be sure a line has no
tax.
A line response has taxRateId and tax ({ "name": "VAT", "percentE4": 200000 }),
both omitted when the line is untaxed. On a draft tax is the live rate, so
editing the rate changes it; once the quote is sent it is the name and percent
frozen when it was sent. A new version of a quote copies the lines' rates.
Totals and tax
Tax is worked out from the lines, per rate. Lines are grouped by rate name and
percent (the live values on a draft, the frozen ones once sent). For each group,
tax is the sum of its net line totals (taxable, after line discounts) times
the percent, rounded half away from zero to the currency precision, once per
quote and rate, never per line. taxes is sorted by percent, largest first,
then by name. See Invoices for the same
rule with an example.
The quote's total is for the client to read; its billing figures stay
before tax. billedAmount, fullyBilled and get-quote-billing compare what
invoices bill against the quote's subtotal, because the rates may change
between the quote and its invoices.
Formatting
details on quote, invoice and recurring-schedule lines, and the quote intro, terms and notes, the invoice notes and the schedule notes, take restricted Markdown ("BT rich text v1"). The server validates the text and stores it normalized. The PDF, the shared page and the app show it formatted. Nothing is ever turned into HTML.
| You write | Result |
|---|---|
- item, * item or • item | Bullet. Indent a bullet by two or more spaces to nest it one level (deeper levels count as that level). |
1. item or 1) item | Numbered item. The first number starts the list; later items are numbered in order whatever you type. |
**bold** | Bold. |
*italic* or _italic_ | Italic. One level of nesting (bold inside italic or the reverse). _ inside a word, as in snake_case, stays literal. |
| A new line | A line break. A blank line separates paragraphs and ends a list. |
\*, \_, \\, a leading \- or \1. | The literal character. |
Everything else, such as # headings, > quotes, [links](https://example.com), , HTML tags, backticks, tables and ---, is not formatting: it is stored as you sent it and shown as literal text. Unmatched * or _ also stay literal.
Normalization on write: CRLF and CR become LF, tabs become two spaces, trailing whitespace is removed from every line, and leading and trailing blank lines are dropped. details is limited to 4,000 characters (after normalization); the existing 4,000-character limits of intro, terms and notes are unchanged. The description of a line is the item: one line of plain text, never formatted, and a line break in it is 422.
Where plain text is needed, such as CSV columns and email text parts, the formatting is flattened: bullets become • item (nested ◦ item), numbered items N. item, and the emphasis markers disappear.
Deposit
The deposit is set on the quote, never per line, either as a share of the
subtotal (depositPercentBps, 1 to 10000; 2500 is 25%) or as an amount
(depositAmountMinor), not both. Both are before tax. depositAmount in the response is the deposit
as money, before tax: the amount you set, or the percentage of the subtotal rounded half-up to
the currency's precision. Setting one replaces the other; list deposit in
clear to remove it. The deposit may not exceed the subtotal when the quote is sent
(422 QUOTE_DEPOSIT_EXCEEDS_TOTAL). The tax on a deposit is added on the
invoice that bills it,
which also says which rate the deposit line takes.
Lifecycle
- Draft. Created by
create-quote. Only a draft can be edited (title, intro, terms, footer, payment text, valid-until, deposit), have lines added, changed, reordered or removed, or be deleted. Any of those on another status returns409QUOTE_NOT_DRAFTwithdetails.status. - Send (
send-quote) numbers the quote and moves it tosent. The app calls this action Finalize and thesentstatus Final; it doesn't email anyone. The quote needs at least one line (422QUOTE_EMPTY), a deposit that doesn't exceed the subtotal (422QUOTE_DEPOSIT_EXCEEDS_TOTAL) and avalidUntilthat hasn't passed. Each taxed line copies its rate's name and percent onto itself in the same transaction, so editing the rate later doesn't change the sent quote. A taxed line on an archived rate is refused with422TAX_RATE_ARCHIVED: move the line to an active rate or to no tax and send again. It happens in one transaction: if anything fails the quote stays a draft and the numbering sequence doesn't move. Sending a quote that isn't a draft returns409QUOTE_INVALID_TRANSITIONand never takes a second number. - Accept and decline (
accept-quote,decline-quote) record the owner's note of the client's answer on asentquote and setacceptedAtordeclinedAt. Any other status returns409QUOTE_INVALID_TRANSITIONwithdetails.statusanddetails.action. They're allowed aftervalidUntilhas passed: the owner decides. - Versions. A sent, accepted or declined quote is never edited. To change one,
call
create-quote-version: it makes a draft copy with the nextversion, copies the lines (new IDs) and the quote's fields, setssupersedesIdon the copy and marks the originalsuperseded(itssupersededByIdnames the copy). The copy gets its own number when it is sent. A superseded quote keeps its number and stays readable; it can't be accepted, declined or versioned again, so only the newest version moves on. Deleting a draft version puts the quote it replaced back toaccepted,declinedorsent, as it was. - A quote that has invoices can't be versioned:
409QUOTE_HAS_INVOICES. Create a separate quote for the change instead. - Delete (
delete-quote) removes a draft and its lines. A sent quote is never deleted.
An archived project is read-only for quotes: creating, editing and sending a
quote, and creating a version, return 409 PROJECT_ARCHIVED. A client-only
quote is held to its client the same way: while the client is archived those
return 409 QUOTE_CLIENT_ARCHIVED. Reading stays possible, and so does
accepting and declining.
Client-only quotes
A quote can be made for a client before any project exists: send clientId and
no projectId to create-quote. It is a normal quote in every other way (lines,
deposit, send, accept, decline, versions, PDF, emails and share links) with these
differences:
projectIdisnullin responses, events and webhooks.clientIdis always set.- Its lines are item, hour or fixed lines; a line can't take a task
(
422QUOTE_HAS_NO_PROJECT). - Numbering uses the business profile's quote pattern and series, never a
project's override. A pattern that uses
{PROJECT}can't number it:send-quotereturns422QUOTE_NUMBERING_CODE_MISSINGand the quote stays a draft. The default pattern,Q-{CLIENT}-{NNN}, works. The number never changes when the quote is later linked to a project. - Versions copy the client and the missing project, so a chain of versions always has one client. Declining a client-only quote leaves nothing behind: no project is created by any status change.
- Time can only refer to a quote of the entry's project, so an unlinked quote is not available to time entries, and it is no project's default quote. After it is linked it is.
- Invoices. An invoice for a client alone (a client-only invoice) can bill the quote lines and the deposit of an accepted quote of its own client, linked or not. An invoice for a project can only bill quotes of that project, so an unlinked quote is invisible to it until it is linked.
- A client with a client-only quote can't be deleted, and its code can't change
once such a quote is numbered (
409CLIENT_IN_USE,CLIENT_CODE_IN_USE).
Filter the list with noProject=true to find them.
Link a quote to a project
An accepted client-only quote can be linked to a project, once:
link-quote-project:POST /quotes/{quoteID}/link-projectwith{ "projectId": "prj_..." }links it to an existing project.start-quote-project:POST /quotes/{quoteID}/start-projectcreates a project for the quote's client and links the quote to it, in one transaction. The body is optional:name(default: the quote's title, cut to 200 characters),code(the project's short code; the usual project code rules and409errors apply) andcreateTasks(defaultfalse). It needsprojects:writeas well asquotes:write, and the project is created like any other (the same validation and events).
Both return the quote with its projectId set. The rules:
- The quote must be
acceptedand the newest version of its chain, otherwise409QUOTE_INVALID_TRANSITION. A quote that already has a project is refused with409QUOTE_ALREADY_HAS_PROJECT: a quote's project is set once and never moved or removed, and no other call changes it. - The project must belong to the quote's client (
422QUOTE_CLIENT_MISMATCH), exist (404PROJECT_NOT_FOUND) and not be archived (409PROJECT_ARCHIVED).start-quote-projectrefuses an archived client with409QUOTE_CLIENT_ARCHIVED. - The whole version chain is linked: the accepted quote and every earlier,
superseded version get the project in the same transaction, so the project's
quote history is complete.
list-quotes?projectId=then returns them all, and the project can't be deleted while it has a quote. - A failure anywhere leaves everything as it was: no project is created and no quote is linked.
- Linking changes nothing that was sent. The quote keeps its number, its snapshots and its stored PDF; the PDF, share page and emails show the same document as before.
- With
createTasks, one project task is created per quote line, in line order, titled with the line's description (cut to 200 characters). Anhourline becomes an hourly task priced at the line's unit price, with an estimate of its hours in minutes; anitemorfixedline becomes a fixed-price task priced at the line total. Each quote line then carries its task intaskId. This is link metadata and is not printed. Invoice lines already billed from the quote keep no task. - After the link, the quote can be versioned like any quote of the project, lines can take the project's tasks, time can refer to it, and the project's invoices can bill it. A deposit billed on a client-only invoice before the link can be applied on a later invoice of the project.
quote.updatedis published for the linked quote and for each earlier version, withproject_idset. There is no separate event type.
Number on send
A quote has no number while it is a draft. send-quote takes the next number from
the quote numbering pattern: the project's quoteNumberPattern if it has one,
else the business profile's. The pattern grammar, the scope of the sequences and
the rules for rendered numbers are described in
Business Profile and Document Numbering.
- The number is built from the pattern's placeholders: the date the quote is
sent (in the workspace's time zone), the client's and project's short codes and
the sequence. With the default pattern,
Q-{CLIENT}-{NNN}, every client has its own sequence and there is no global counter. - Numbers are unique in the workspace. Within one sequence they are gapless: a failed send takes none. Concurrent sends in one sequence are serialized, so two quotes never share a number.
- A pattern that uses
{PROJECT}needs the project to have a code: otherwise422QUOTE_NUMBERING_CODE_MISSINGand the quote stays a draft. A client-only quote has no project: it always uses the business profile's pattern, and a profile pattern with{PROJECT}can't number it (the same error). - Once assigned, a number never changes, even if the pattern is changed later (the
new pattern applies to later quotes only). A project or client code can't change
once a numbered quote was built from it (
409PROJECT_CODE_IN_USE,CLIENT_CODE_IN_USE); drafts have no number and don't block it. - If the next number is already used by another document (a number migrated in by
hand, say), the send fails with
409DOCUMENT_NUMBER_CONFLICTand nothing changes; set the next number for the series and send again.
PDF
get-quote-pdf returns the quote as a PDF (application/pdf). Add
download=true to get Content-Disposition: attachment instead of inline; the
file is named after the number, for example Quote-Q-ACME-001.pdf. The response
is Cache-Control: private, no-store.
- A draft is rendered from its current content with a "Draft" mark and no number, every time you ask. Nothing is kept.
- A sent quote (and one that was then accepted, declined or superseded) returns the PDF made from its lines and snapshots when it was sent. It is stored at that moment, and asking again returns the same bytes. It does not show the quote's later status. If it has to be rendered again (the stored copy was lost, or the workspace was restored or cloned), it uses the logo recorded when it was sent while that attachment is still available and unchanged, and has no logo otherwise; it never uses the profile's current logo.
- The PDF has the logo (when the profile has one), the business and client blocks,
the number and send date, the valid-until date, the title, introduction, lines
(with their unit: hours read
2.5 hrsat$120.00/hr, a fixed fee has no quantity or rate), the totals, the deposit due on acceptance when the quote has one, and the terms. A quote with no taxed line prints only the total. When at least one line is taxed, the totals block prints Subtotal, one row per tax rate (for example "VAT 20%"), a deposit row that reads "Deposit (before tax)", and Total; a Tax column with each line's percent appears only when the lines differ in tax. See Invoices for the layout, the fonts and the languages it supports, how stored PDFs relate to attachments, backups and clones, and the rate limit. - It is a read: it needs
quotes:readand stays available after a downgrade. It returns404QUOTE_NOT_FOUND,409WORKSPACE_NOT_BUSINESSin a personal workspace, and500DOCUMENT_RENDER_FAILEDif the PDF can't be created.
Emailing
A sent quote can be emailed to a contact of its client with the PDF attached:
send-quote-email and list-quote-emails on
/v1/workspaces/{workspaceID}/quotes/{quoteID}/emails. See
Emailing documents for the sender identity,
Reply-To, recipients and bounce handling.
Share links
A sent, accepted or declined quote can be given to the client as a secret link
that opens a page on the web app showing the quote and its PDF, without signing in: create-quote-share-link,
list-quote-share-links and revoke-quote-share-link on
/v1/workspaces/{workspaceID}/quotes/{quoteID}/share-links. A link stops working
when the quote is superseded by a new version. See
Shared documents for how links are created,
expire and are revoked, the public routes, and what the client can see.
Metadata
A quote carries your own key/value pairs in a metadata object, always present and {} when empty,
for an external ID or any other reference from your own systems. It is internal: it is never
printed on a document, snapshot, share link or email. The rules are the same for every record and
are described once under Metadata.
- Limits: at most 50 keys. A key is 1 to 40 characters from
A-Z a-z 0-9 _ . -, a value 1 to 500 characters. A request that breaks a limit returns422and names the key. - Write:
metadatais optional on create and on update. On update the pairs are merged per key: a value sets or overwrites the key,nullor""removes it,{}changes nothing, and"metadata": nullremoves every key. On create,nulland""values are ignored. - Sent, accepted, declined and superseded quotes stay metadata-writable: a request that changes only
metadatais accepted whereQUOTE_NOT_DRAFTwould refuse any other change. Mixed with another field, it is refused as usual. - New versions:
create-quote-versioncopies the metadata to the new version, so a filter on a quote's external ID also returns its superseded versions. The two versions don't share it afterwards. - Filter:
list-quotestakes an exact-match filter writtenmetadata[key]=value. Several keys are AND-ed (at most 10), and it combines with the other filters:
GET /v1/workspaces/{workspaceID}/quotes?metadata[external_id]=ABC-123
- Access: the same scopes, role rules and plan feature as the rest of the record. No new scope.
Plan and downgrades
Quotes need a plan that includes business tools (Solo Business). Every write,
including accepting, declining and sending, returns 402
PLAN_FEATURE_REQUIRED otherwise. The one exception is revoking a share link,
which always works. Reading stays possible after a downgrade, so
existing quotes are never hidden. Quotes have no count limit of their own. While
an account is over another plan limit (for example clients) it is read-only
(423 plan_limits_exceeded) and quote changes are refused too.
Backup, export and clone
- Quotes and their lines are part of workspace backups. A backup that holds quotes can only be restored into a business workspace; restored quotes and lines get new IDs and keep their numbers, line amounts, tax rates, task links and place in the version chain. A backup made before tax existed restores with untaxed lines. The numbering sequences are restored with them, scoped to the restored clients and projects, so the next quote does not reuse a number.
- The snapshots a sent quote keeps are part of backups, exports and clones. The stored PDFs are not: they are derived from the lines and snapshots, so a restored or cloned quote renders its PDF again the first time it is asked for.
- The data export (
data.json) hasquotesandquoteLinesarrays, with amounts in the workspace's minor unit and quantities in ten-thousandths, and the archive hasquotes.csvandquote-lines.csv. Each quote also has its computedsubtotalMinor,taxTotalMinorandtotalMinor(at the end ofquotes.csv), each line hastaxRateId,taxNameandtaxPercentE4(at the end ofquote-lines.csv;lineTotalMinoris before tax), and the business's tax rates are intaxRates. Each line carries itsunit(aunitcolumn in the CSV) and itsdetails, raw indata.jsonand as plain text in adetailscolumn of the CSV. A backup made before line details existed restores them as empty. A backup made before line units existed restores its lines asitem. Each record indata.jsoncarries itsmetadataobject (always present,{}when empty; an additive field of format version 1). Backups and clones carry metadata too, and the metadata is not part of the frozen snapshots. - Cloning a business workspace copies its quotes and lines, linked to the clone's own clients, projects and tasks, and keeps each numbering sequence where it stands.
- A client-only quote is exported, backed up and cloned with
projectId: null. Every exported quote has aclientId(aclientIdcolumn inquotes.csv, afterprojectId, which is empty for a client-only quote). A backup made before client-only quotes restores each quote with its project's client.
Events
Each change publishes an event in the same transaction: quote.created
(also for a new version, with supersedes_id), quote.updated (the quote or one
of its lines changed), quote.deleted, quote.sent, quote.accepted,
quote.declined and quote.superseded (for the replaced quote, with
superseded_by). They carry identifiers (project_id, which is null on a
client-only quote, and client_id), version, status, number and metadata, and no
text or amounts. They are public webhook events: subscribe to them (or to quote.*) on a webhook endpoint (see Webhook events), and read them from event history and the event stream. Reading them needs the quotes:read scope in addition to events:read (event history and stream) or webhooks:read (the event catalog).
Errors
| Status | Code | Meaning |
|---|---|---|
402 | PLAN_FEATURE_REQUIRED | The plan does not include business tools. |
404 | QUOTE_NOT_FOUND | No such quote in this workspace. |
404 | QUOTE_LINE_NOT_FOUND | No such line in this quote. |
404 | PROJECT_NOT_FOUND | The projectId isn't a project of this workspace. |
404 | CLIENT_NOT_FOUND | The clientId isn't a client of this workspace. |
404 | PROJECT_TASK_NOT_FOUND | The taskId isn't a task of the quote's project. |
404 | TAX_RATE_NOT_FOUND | A taxRateId isn't a tax rate of this workspace. |
409 | WORKSPACE_NOT_BUSINESS | The workspace is personal. |
409 | QUOTE_NOT_DRAFT | The quote has been sent and can't be changed. details.status repeats its status. |
409 | QUOTE_INVALID_TRANSITION | The quote's status doesn't allow that action. details.status and details.action repeat them. |
409 | DOCUMENT_NOT_SHAREABLE | A share link needs a sent, accepted or declined quote. See Shared documents. |
409 | QUOTE_HAS_INVOICES | The quote has invoices, so it can't get a new version. |
409 | PROJECT_ARCHIVED | The project is archived, so its quotes are read-only. |
409 | QUOTE_CLIENT_ARCHIVED | The client of a client-only quote is archived, so the quote can't be created, changed or sent. |
409 | QUOTE_ALREADY_HAS_PROJECT | The quote already has a project; linking is allowed once. |
409 | DOCUMENT_NUMBER_CONFLICT | The next number is already used. |
500 | DOCUMENT_RENDER_FAILED | The PDF could not be created. The quote is unchanged; ask again. |
422 | QUOTE_EMPTY | A quote needs at least one line before it is sent. |
422 | QUOTE_DEPOSIT_EXCEEDS_TOTAL | The deposit is more than the subtotal (before tax). |
422 | TAX_RATE_ARCHIVED | A line's taxRateId names an archived rate, or the quote is being sent with a taxed line on one. |
422 | QUOTE_NUMBERING_CODE_MISSING | The pattern uses {PROJECT} and the project has no code, or the quote is client-only and has no project. |
422 | QUOTE_HAS_NO_PROJECT | A line of a client-only quote can't take a project task. |
422 | QUOTE_CLIENT_MISMATCH | A quote was created for a project and a different client than the project's, or linked to a project of another client. |
422 | DOCUMENT_NUMBER_PATTERN_INVALID | The pattern in force no longer passes the numbering grammar. |
422 | DOCUMENT_ISSUE_DATE_OUT_OF_ORDER | The sequence has already issued a quote dated later than today in the workspace time zone. |