Skip to main content

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_.

OperationMethod and pathScope
list-quotesGET /quotesquotes:read
get-quoteGET /quotes/{quoteID}quotes:read
get-quote-pdfGET /quotes/{quoteID}/pdfquotes:read
create-quotePOST /quotesquotes:write
update-quotePATCH /quotes/{quoteID}quotes:write
delete-quoteDELETE /quotes/{quoteID}quotes:write
send-quotePOST /quotes/{quoteID}/sendquotes:write
accept-quotePOST /quotes/{quoteID}/acceptquotes:write
decline-quotePOST /quotes/{quoteID}/declinequotes:write
create-quote-versionPOST /quotes/{quoteID}/versionsquotes:write
link-quote-projectPOST /quotes/{quoteID}/link-projectquotes:write
start-quote-projectPOST /quotes/{quoteID}/start-projectquotes:write and projects:write
create-quote-linePOST /quotes/{quoteID}/linesquotes:write
update-quote-linePATCH /quotes/{quoteID}/lines/{lineID}quotes:write
delete-quote-lineDELETE /quotes/{quoteID}/lines/{lineID}quotes:write
reorder-quote-linesPOST /quotes/{quoteID}/lines/reorderquotes: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. projectId is nullable: it is null on a client-only quote until the quote is linked to a project, so read it as nullable. When creating, send a projectId, a clientId or both. A projectId must name a project of the workspace that isn't archived (404 PROJECT_NOT_FOUND, 409 PROJECT_ARCHIVED) and the quote's clientId is then the project's; naming a different client as well is 422 QUOTE_CLIENT_MISMATCH. With only a clientId the client must exist in the workspace (404 CLIENT_NOT_FOUND) and not be archived (409 QUOTE_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, and update-quote takes no projectId.
  • title is required, up to 200 characters. intro, notes and terms are 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: intro above the lines, then the lines and totals, then notes (headed "Notes"), then terms, then the payment details and the footer. notes is for scope notes and exclusions; it is empty unless you set it, is edited and frozen like intro and terms, and is copied to a new version. It is not copied to invoices made from the quote.
  • When you create a quote and leave terms out, it starts from the business profile's quoteDefaultTerms (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.
  • footer and paymentText are 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's quoteDefaultFooter and quoteDefaultPaymentText (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 like intro and terms while the quote is a draft, frozen when it is sent, and copied to a new version.
  • status is one of draft, sent, accepted, declined and superseded (see Lifecycle). Only stored statuses appear here.
  • number is empty until the quote is sent, then final (see Number on send).
  • businessSnapshot, clientSnapshot and currencySnapshot are 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.phone and businessSnapshot.contactEmail are 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.
  • validUntil is 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. subtotal is the sum of the line totals, before tax; taxTotal is the tax; total is the gross total, subtotal + taxTotal. They are always computed from the lines, never stored on the quote. taxes has one row per tax rate (name, percentE4, taxable, tax) and is [] when no line is taxed; then taxTotal is zero and total equals subtotal, 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). lines is returned by get-quote and the write operations that return a quote; list-quotes leaves the lines out and returns lineCount.
  • Derived flags. expired is true while the quote is sent and its validUntil date has passed in the workspace's time zone (an accepted or declined quote is not expired). converted is true once the quote has invoices, billedAmount is what has been invoiced against it and fullyBilled is true when the quote has invoices and billedAmount has reached the subtotal. Billing is counted before tax, so tax never makes a quote look over-billed. None of these are stored, so they can't drift. converted counts every invoice that isn't void, drafts included (a quote can't be versioned from under a draft), while billedAmount counts only issued ones. Voiding an invoice releases its quote lines again. billedAmount includes deposits billed against the quote and takes applied deposits off again; see Deposit and progress billing, where get-quote-billing reports 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​

  • description is required, up to 500 characters, on one line. It is the line's item and is always plain text.
  • details is 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 "" to update-quote-line to clear it. A new version of a quote and an invoice that bills a quote line copy it.
  • unit is what the line is billed in: item (the default when it is left out), hour or fixed. It decides how the line reads on the PDF; the total is always quantity × unit price. A fixed line is a single fee: its quantity is always one unit (quantityE4: 10000), so leave quantityE4 out or send 10000, and put the fee in unitPriceMinor. Any other quantity on a fixed line is 422 VALIDATION_FAILED. Changing a line to fixed with update-quote-line resets its quantity to one. Lines that existed before units are item.
  • quantityE4 is the quantity in ten-thousandths of a unit, so 15000 is 1.5 (1.5 hours for an hour line). It must be above zero and at most 1,000,000 units (10000000000), and is required unless the unit is fixed.
  • unitPriceMinor is the price of one unit (the hourly rate of an hour line, the fee of a fixed line) in the workspace's minor unit (cents at currency precision 2, like every other amount in the API); responses return unitPrice as { minor, display }. It can't be negative and is range-checked (amountOutOfRange). Amounts are stored with four decimal places internally.
  • discountBps is the line discount in basis points: 1000 is 10%, from 0 to 10000. Discounts are per line.
  • taskId is optional and ties the line to a task of the quote's project (404 PROJECT_TASK_NOT_FOUND for 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: 422 QUOTE_HAS_NO_PROJECT. Item, hour and fixed lines work as on any quote.
  • taxRateId is 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 as total; 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 by position; a new line goes to the end. reorder-quote-lines takes lineIds, which must name every line of the quote exactly once, and returns the lines in the new order. update-quote-line can also set position directly.
  • On update-quote-line, fields left out are unchanged; list task in clear to 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
CreateThe 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.
UpdateThe 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 writeResult
- item, * item or • itemBullet. Indent a bullet by two or more spaces to nest it one level (deeper levels count as that level).
1. item or 1) itemNumbered 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 lineA 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), ![images](...), 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 returns 409 QUOTE_NOT_DRAFT with details.status.
  • Send (send-quote) numbers the quote and moves it to sent. The app calls this action Finalize and the sent status Final; it doesn't email anyone. The quote needs at least one line (422 QUOTE_EMPTY), a deposit that doesn't exceed the subtotal (422 QUOTE_DEPOSIT_EXCEEDS_TOTAL) and a validUntil that 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 with 422 TAX_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 returns 409 QUOTE_INVALID_TRANSITION and never takes a second number.
  • Accept and decline (accept-quote, decline-quote) record the owner's note of the client's answer on a sent quote and set acceptedAt or declinedAt. Any other status returns 409 QUOTE_INVALID_TRANSITION with details.status and details.action. They're allowed after validUntil has 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 next version, copies the lines (new IDs) and the quote's fields, sets supersedesId on the copy and marks the original superseded (its supersededById names 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 to accepted, declined or sent, as it was.
  • A quote that has invoices can't be versioned: 409 QUOTE_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:

  • projectId is null in responses, events and webhooks. clientId is always set.
  • Its lines are item, hour or fixed lines; a line can't take a task (422 QUOTE_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-quote returns 422 QUOTE_NUMBERING_CODE_MISSING and 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 (409 CLIENT_IN_USE, CLIENT_CODE_IN_USE).

Filter the list with noProject=true to find them.

An accepted client-only quote can be linked to a project, once:

  • link-quote-project: POST /quotes/{quoteID}/link-project with { "projectId": "prj_..." } links it to an existing project.
  • start-quote-project: POST /quotes/{quoteID}/start-project creates 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 and 409 errors apply) and createTasks (default false). It needs projects:write as well as quotes: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 accepted and the newest version of its chain, otherwise 409 QUOTE_INVALID_TRANSITION. A quote that already has a project is refused with 409 QUOTE_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 (422 QUOTE_CLIENT_MISMATCH), exist (404 PROJECT_NOT_FOUND) and not be archived (409 PROJECT_ARCHIVED). start-quote-project refuses an archived client with 409 QUOTE_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). An hour line becomes an hourly task priced at the line's unit price, with an estimate of its hours in minutes; an item or fixed line becomes a fixed-price task priced at the line total. Each quote line then carries its task in taskId. 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.updated is published for the linked quote and for each earlier version, with project_id set. 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: otherwise 422 QUOTE_NUMBERING_CODE_MISSING and 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 (409 PROJECT_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 409 DOCUMENT_NUMBER_CONFLICT and 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 hrs at $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:read and stays available after a downgrade. It returns 404 QUOTE_NOT_FOUND, 409 WORKSPACE_NOT_BUSINESS in a personal workspace, and 500 DOCUMENT_RENDER_FAILED if 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.

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 returns 422 and names the key.
  • Write: metadata is optional on create and on update. On update the pairs are merged per key: a value sets or overwrites the key, null or "" removes it, {} changes nothing, and "metadata": null removes every key. On create, null and "" values are ignored.
  • Sent, accepted, declined and superseded quotes stay metadata-writable: a request that changes only metadata is accepted where QUOTE_NOT_DRAFT would refuse any other change. Mixed with another field, it is refused as usual.
  • New versions: create-quote-version copies 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-quotes takes an exact-match filter written metadata[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) has quotes and quoteLines arrays, with amounts in the workspace's minor unit and quantities in ten-thousandths, and the archive has quotes.csv and quote-lines.csv. Each quote also has its computed subtotalMinor, taxTotalMinor and totalMinor (at the end of quotes.csv), each line has taxRateId, taxName and taxPercentE4 (at the end of quote-lines.csv; lineTotalMinor is before tax), and the business's tax rates are in taxRates. Each line carries its unit (a unit column in the CSV) and its details, raw in data.json and as plain text in a details column of the CSV. A backup made before line details existed restores them as empty. A backup made before line units existed restores its lines as item. Each record in data.json carries its metadata object (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 a clientId (a clientId column in quotes.csv, after projectId, 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​

StatusCodeMeaning
402PLAN_FEATURE_REQUIREDThe plan does not include business tools.
404QUOTE_NOT_FOUNDNo such quote in this workspace.
404QUOTE_LINE_NOT_FOUNDNo such line in this quote.
404PROJECT_NOT_FOUNDThe projectId isn't a project of this workspace.
404CLIENT_NOT_FOUNDThe clientId isn't a client of this workspace.
404PROJECT_TASK_NOT_FOUNDThe taskId isn't a task of the quote's project.
404TAX_RATE_NOT_FOUNDA taxRateId isn't a tax rate of this workspace.
409WORKSPACE_NOT_BUSINESSThe workspace is personal.
409QUOTE_NOT_DRAFTThe quote has been sent and can't be changed. details.status repeats its status.
409QUOTE_INVALID_TRANSITIONThe quote's status doesn't allow that action. details.status and details.action repeat them.
409DOCUMENT_NOT_SHAREABLEA share link needs a sent, accepted or declined quote. See Shared documents.
409QUOTE_HAS_INVOICESThe quote has invoices, so it can't get a new version.
409PROJECT_ARCHIVEDThe project is archived, so its quotes are read-only.
409QUOTE_CLIENT_ARCHIVEDThe client of a client-only quote is archived, so the quote can't be created, changed or sent.
409QUOTE_ALREADY_HAS_PROJECTThe quote already has a project; linking is allowed once.
409DOCUMENT_NUMBER_CONFLICTThe next number is already used.
500DOCUMENT_RENDER_FAILEDThe PDF could not be created. The quote is unchanged; ask again.
422QUOTE_EMPTYA quote needs at least one line before it is sent.
422QUOTE_DEPOSIT_EXCEEDS_TOTALThe deposit is more than the subtotal (before tax).
422TAX_RATE_ARCHIVEDA line's taxRateId names an archived rate, or the quote is being sent with a taxed line on one.
422QUOTE_NUMBERING_CODE_MISSINGThe pattern uses {PROJECT} and the project has no code, or the quote is client-only and has no project.
422QUOTE_HAS_NO_PROJECTA line of a client-only quote can't take a project task.
422QUOTE_CLIENT_MISMATCHA quote was created for a project and a different client than the project's, or linked to a project of another client.
422DOCUMENT_NUMBER_PATTERN_INVALIDThe pattern in force no longer passes the numbering grammar.
422DOCUMENT_ISSUE_DATE_OUT_OF_ORDERThe sequence has already issued a quote dated later than today in the workspace time zone.