Estimates
An estimate is a priced quote you send to a client before the work is invoiced. It moves from Draft to Sent when you email it, and the client’s answer is recorded as Accepted or Declined; each estimate keeps a history of sends and decisions.
Who can use it
Section titled “Who can use it”Estimates use the business’s invoice permissions; there is no separate estimate permission. With your personal access token: permission to view the invoice module lets you list estimates; to view invoices, read one estimate and its history; to create invoices, create estimates; to edit invoices, edit, send, accept, decline and revert them; to delete invoices, delete them. A permission covers every estimate of the business, whether you are a member, a manager or an administrator: there is no narrowing to your own clients or the people you manage, and no field is hidden. Administrators hold all of these permissions; members and managers hold those their permission profile grants. A client portal login is refused with 403.
Objects
Section titled “Objects”The estimate object
Section titled “The estimate object”One estimate, with its line items, taxes and totals.
| Field | Type | Description |
|---|---|---|
id |
string | The estimate’s id. Read only. |
number |
string | The Estimate ID printed on the document, such as EST-0012. Given the next free number when the estimate is created; must stay unique within the business. Can be null. |
subject |
string | The estimate’s subject line. Can be null. |
status |
string | Where the estimate stands: draft (never sent), sent, accepted or declined. Changed only by the send, accept, decline and revert actions. Read only. |
client |
object | The client the estimate is for, { id, name }. Null when no client is chosen. Can be null. |
billTo |
object | The Bill to block as printed on the estimate: { name, company, address, email, phone, vatNumber }, each a string or null. Copied from the client when the client is chosen or changed, and editable afterwards. |
poNumber |
string | The client’s purchase order number (PO number). Filled from the client’s default PO when the client is chosen, if the estimate has none. Can be null. |
issueDate |
date | The Issue date printed on the estimate. Today, in the business’s time zone, when created. Can be null. |
currency |
string | ISO currency code of every amount on the estimate. Defaults to the client’s currency, else the business’s. |
lineItems |
array of estimateLineItem | The lines, in printed order. Empty for a new estimate. |
subtotalAmount |
decimal | Sum of the line amounts before discount and tax. Read only. |
discountType |
string | percentage or flat. |
discountRate |
decimal | The discount as entered: a percentage when discountType is percentage, a sum of money when it is flat. 0 for no discount. |
discountAmount |
decimal | The money taken off by the discount. Read only. |
taxes |
array of estimateTax | The taxes on the estimate: Tax (slot 1) and Tax 2 (slot 2), each only when set. Empty when the estimate has no tax. |
taxMode |
string | The taxation mode: simple (both taxes are charged on the pre-tax amount) or compound (Tax 2 is charged on top of Tax). |
totalAmount |
decimal | The estimated total after discount and taxes. Read only. |
notes |
string | The notes printed under the lines (terms, validity, next steps), as HTML. Can be null. |
shareUrl |
string | The link to the client’s view of the estimate, where they can read, accept or decline it without logging in. Uses the business’s own domain when one is set up. Always set. Read only. |
sentAt |
datetime | When the estimate was last emailed. Null if it has never been sent. Read only. Can be null. |
acceptedAt |
datetime | When the estimate was accepted. Null unless the status is accepted. Read only. Can be null. |
declinedAt |
datetime | When the estimate was declined. Null unless the status is declined. Read only. Can be null. |
invoice |
object | The invoice created from this accepted estimate, { id, number }, or null. Read only. Can be null. |
createdBy |
object | The team member who created the estimate, { id, name }. Null if that person has been removed. Read only. Can be null. |
createdAt |
datetime | When the estimate was created. Read only. |
updatedAt |
datetime | When the estimate last changed, including a send or a decision. Read only. |
The estimate line item object
Section titled “The estimate line item object”One line item on an estimate.
| Field | Type | Description |
|---|---|---|
id |
string | The line’s id. Lines are rewritten whenever the item list is replaced, so do not store these ids between edits. Read only. |
itemType |
object | The Item type of the line, { id, name } (see Item types), or null. Can be null. |
description |
string | The line’s description. Empty string when none. |
quantity |
decimal | The quantity. |
unitPrice |
decimal | The unit price of the line. |
amount |
decimal | Quantity times unit price, rounded to two decimals. Read only. |
currency |
string | ISO currency code of the line’s amounts: the estimate’s currency. Read only. |
isTaxed |
boolean | Whether Tax applies to this line. Defaults to true. |
isTaxed2 |
boolean | Whether Tax 2 applies to this line. Defaults to false. |
The estimate tax object
Section titled “The estimate tax object”One tax on an estimate: Tax (slot 1) or Tax 2 (slot 2).
| Field | Type | Description |
|---|---|---|
slot |
integer | Which tax this is: 1 for Tax, 2 for Tax 2. |
name |
string | The tax’s name as printed, such as VAT. Defaults to Tax or Tax 2. |
rate |
decimal | The tax percentage, 0 to 100. |
amount |
decimal | The money this tax adds. Read only. |
currency |
string | ISO currency code of the tax amount: the estimate’s currency. Read only. |
The estimate history entry object
Section titled “The estimate history entry object”One event in an estimate’s history: a send, a client view, a decision, a revert or the creation of the invoice.
| Field | Type | Description |
|---|---|---|
id |
string | The entry’s id. Read only. |
event |
string | What happened: sent, viewed (the client opened it; OneSuite no longer records views, so this appears only in older history), accepted, declined, reopened (a decision was reverted) or turnedIntoInvoice. Read only. |
by |
string | The name of who did it: the team member, or, for a decision made through the client link, the name the client typed. Read only. Can be null. |
member |
object | The team member who did it, { id, name }, when it was a team member who is still in the business. Read only. Can be null. |
recipients |
array of object | For a send, everyone it went to, each { name, email } (name may be null). Empty for other events. Read only. |
subject |
string | For a send, the email’s subject. Read only. Can be null. |
body |
string | For a send, the email’s message as sent (HTML). Read only. Can be null. |
occurredAt |
datetime | When it happened. Read only. |
Endpoints
Section titled “Endpoints”List estimates
Section titled “List estimates”Returns the business’s estimates, latest issue date first. Filter by status, client, issue date range and text; updatedSince returns estimates changed at or after a moment, including by a send or a decision.
GET /v1/estimatesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, default 1. |
limit |
query | integer | No | Rows per page, default 20, max 1000. |
status |
query | string | No | Comma-separated statuses: draft, sent, accepted, declined. open means draft and sent together, like the app’s Open tab. |
filterClientIds |
query | string | No | Comma-separated client ids. |
from |
query | date | No | Issue date on or after this day. |
to |
query | date | No | Issue date on or before this day. |
search |
query | string | No | Matches the Estimate ID, subject, or Bill to name or company. |
updatedSince |
query | datetime | No | Only estimates changed at or after this moment. Records deleted since then are not reported. |
sortField |
query | string | No | issueDate (default), createdAt, updatedAt, number or totalAmount. |
sortOrder |
query | string | No | desc (default) or asc. |
Rules
403when the token’s person may not view the invoice module.400when a status is not one of the listed values or a date is not YYYY-MM-DD.
Example request
curl "https://api.onesuite.io/v1/estimates?status=open&limit=1" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/estimates?status=open&limit=1", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm3k8q2v10004ab12cdef3456", "number": "EST-0012", "subject": "Website refresh, phase 1", "status": "sent", "client": { "id": "cm1a2b3c40001xy98zt7654ab", "name": "Northwind Studio" }, "billTo": { "name": "Alex Morgan", "company": "Northwind Studio", "address": "12 Harbour Road, Bristol BS1 4AB", "phone": null, "vatNumber": null }, "poNumber": "PO-2291", "issueDate": "2026-11-12", "currency": "GBP", "lineItems": [ { "id": "cm3k8q2v10005ab12cdef3457", "itemType": { "id": "cm0it7ype0001ab12cdef0001", "name": "Service" }, "description": "Design and build of five page templates", "quantity": 5, "unitPrice": 800, "amount": 4000, "currency": "GBP", "isTaxed": true, "isTaxed2": false } ], "subtotalAmount": 4000, "discountType": "percentage", "discountRate": 0, "discountAmount": 0, "taxes": [ { "slot": 1, "name": "VAT", "rate": 20, "amount": 800, "currency": "GBP" } ], "taxMode": "simple", "totalAmount": 4800, "notes": "<p>Valid for 30 days.</p>", "shareUrl": "https://app.onesuite.io/estimate/cm3k8q2v1pubkey00000000001", "sentAt": "2026-11-12T10:04:31.512Z", "acceptedAt": null, "declinedAt": null, "invoice": null, "createdBy": { "id": "cm0mem0001ab12cdef000001", "name": "Sam Lee" }, "createdAt": "2026-11-11T16:20:02.118Z", "updatedAt": "2026-11-12T10:04:31.540Z" } ], "totalCount": 7, "page": 1, "limit": 1}Get an estimate
Section titled “Get an estimate”Returns one estimate with its lines, taxes and totals.
GET /v1/estimates/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The estimate’s id. |
Rules
403when the token’s person may not view invoices.404when no estimate with this id exists in the business.
Example request
curl "https://api.onesuite.io/v1/estimates/cm3k8q2v10004ab12cdef3456" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/estimates/cm3k8q2v10004ab12cdef3456", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm3k8q2v10004ab12cdef3456", "number": "EST-0012", "subject": "Website refresh, phase 1", "status": "sent", "client": { "id": "cm1a2b3c40001xy98zt7654ab", "name": "Northwind Studio" }, "billTo": { "name": "Alex Morgan", "company": "Northwind Studio", "address": "12 Harbour Road, Bristol BS1 4AB", "phone": null, "vatNumber": null }, "poNumber": "PO-2291", "issueDate": "2026-11-12", "currency": "GBP", "lineItems": [ { "id": "cm3k8q2v10005ab12cdef3457", "itemType": { "id": "cm0it7ype0001ab12cdef0001", "name": "Service" }, "description": "Design and build of five page templates", "quantity": 5, "unitPrice": 800, "amount": 4000, "currency": "GBP", "isTaxed": true, "isTaxed2": false } ], "subtotalAmount": 4000, "discountType": "percentage", "discountRate": 0, "discountAmount": 0, "taxes": [ { "slot": 1, "name": "VAT", "rate": 20, "amount": 800, "currency": "GBP" } ], "taxMode": "simple", "totalAmount": 4800, "notes": "<p>Valid for 30 days.</p>", "shareUrl": "https://app.onesuite.io/estimate/cm3k8q2v1pubkey00000000001", "sentAt": "2026-11-12T10:04:31.512Z", "acceptedAt": null, "declinedAt": null, "invoice": null, "createdBy": { "id": "cm0mem0001ab12cdef000001", "name": "Sam Lee" }, "createdAt": "2026-11-11T16:20:02.118Z", "updatedAt": "2026-11-12T10:04:31.540Z" }}Create an estimate
Section titled “Create an estimate”Creates a Draft estimate. As in the app, it starts with the next Estimate ID, today’s issue date and the default subject, notes and taxes from your invoice settings; any field you send replaces the default. Choosing a client fills the Bill to block, currency and PO number from the client.
POST /v1/estimatesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
clientId |
body | string | No | The client’s id. |
number |
body | string | No | Estimate ID; defaults to the next free one. |
subject |
body | string | No | Subject. |
poNumber |
body | string | No | PO number. |
issueDate |
body | date | No | Issue date. |
currency |
body | string | No | ISO currency code. |
billTo |
body | object | No | Any of name, company, address, email, phone, vatNumber, to override what was copied from the client. |
lineItems |
body | array of object | No | Lines, each { itemTypeId?, description, quantity, unitPrice, isTaxed?, isTaxed2? } (? marks an optional key). At most 100. A line with no description, quantity or price is dropped. |
discountType |
body | string | No | percentage or flat. |
discountRate |
body | decimal | No | The discount, 0 or more: a percentage for percentage, a sum of money for flat. |
taxes |
body | array of object | No | [{ slot, name, rate }] with slot 1 (Tax) and/or 2 (Tax 2), rate a percentage from 0 to 100. Sending it replaces both taxes: a slot you leave out is removed. Send [] for no tax. |
taxMode |
body | string | No | simple (both taxes on the pre-tax amount) or compound (Tax 2 on top of Tax). |
notes |
body | string | No | Notes, HTML allowed. |
Rules
403when the token’s person may not create invoices.404when the client is not in the business.400when an item type is not one of the business’s item types, a tax rate is outside 0 to 100, a discount is negative, there are more than 100 lines or a date is malformed.409when the Estimate ID is already used by another estimate.- Answers 201 with the new estimate.
Example request
curl "https://api.onesuite.io/v1/estimates" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"clientId":"cm1a2b3c40001xy98zt7654ab","subject":"Website refresh, phase 1","lineItems":[{"itemTypeId":"cm0it7ype0001ab12cdef0001","description":"Design and build of five page templates","quantity":5,"unitPrice":800}],"taxes":[{"slot":1,"name":"VAT","rate":20}]}'const response = await fetch("https://api.onesuite.io/v1/estimates", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ clientId: "cm1a2b3c40001xy98zt7654ab", subject: "Website refresh, phase 1", lineItems: [ { itemTypeId: "cm0it7ype0001ab12cdef0001", description: "Design and build of five page templates", quantity: 5, unitPrice: 800, }, ], taxes: [ { slot: 1, name: "VAT", rate: 20, }, ], }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cm3k8q2v10004ab12cdef3456", "number": "EST-0012", "subject": "Website refresh, phase 1", "status": "draft", "client": { "id": "cm1a2b3c40001xy98zt7654ab", "name": "Northwind Studio" }, "billTo": { "name": "Alex Morgan", "company": "Northwind Studio", "address": "12 Harbour Road, Bristol BS1 4AB", "phone": null, "vatNumber": null }, "poNumber": "PO-2291", "issueDate": "2026-11-11", "currency": "GBP", "lineItems": [ { "id": "cm3k8q2v10005ab12cdef3457", "itemType": { "id": "cm0it7ype0001ab12cdef0001", "name": "Service" }, "description": "Design and build of five page templates", "quantity": 5, "unitPrice": 800, "amount": 4000, "currency": "GBP", "isTaxed": true, "isTaxed2": false } ], "subtotalAmount": 4000, "discountType": "percentage", "discountRate": 0, "discountAmount": 0, "taxes": [ { "slot": 1, "name": "VAT", "rate": 20, "amount": 800, "currency": "GBP" } ], "taxMode": "simple", "totalAmount": 4800, "notes": "<p>Valid for 30 days.</p>", "shareUrl": "https://app.onesuite.io/estimate/cm3k8q2v1pubkey00000000001", "sentAt": null, "acceptedAt": null, "declinedAt": null, "invoice": null, "createdBy": { "id": "cm0mem0001ab12cdef000001", "name": "Sam Lee" }, "createdAt": "2026-11-11T16:20:02.118Z", "updatedAt": "2026-11-11T16:20:02.118Z" }}Update an estimate
Section titled “Update an estimate”Changes the fields you send; totals are recalculated. Sending lineItems replaces all the lines (to add, change or remove lines, send the full list you want); leaving it out keeps the lines as they are. Changing the client copies the new client’s details into the Bill to block and sets the client’s currency, unless you send your own billTo or currency in the same request.
PATCH /v1/estimates/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The estimate’s id. |
| body | body | object | No | Any of the fields Create an estimate accepts. Send clientId: null to remove the client. |
Rules
409when the estimate is accepted or declined; revert the decision first.409when the Estimate ID is already used by another estimate; 400 when it is blank.404when the estimate or the client is not in the business.400for the same field checks as Create an estimate.403when the token’s person may not edit invoices.
Example request
curl "https://api.onesuite.io/v1/estimates/cm3k8q2v10004ab12cdef3456" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"discountType":"percentage","discountRate":10}'const response = await fetch("https://api.onesuite.io/v1/estimates/cm3k8q2v10004ab12cdef3456", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ discountType: "percentage", discountRate: 10, }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cm3k8q2v10004ab12cdef3456", "number": "EST-0012", "subject": "Website refresh, phase 1", "status": "draft", "client": { "id": "cm1a2b3c40001xy98zt7654ab", "name": "Northwind Studio" }, "billTo": { "name": "Alex Morgan", "company": "Northwind Studio", "address": "12 Harbour Road, Bristol BS1 4AB", "phone": null, "vatNumber": null }, "poNumber": "PO-2291", "issueDate": "2026-11-11", "currency": "GBP", "lineItems": [ { "id": "cm3k8q2v10005ab12cdef3457", "itemType": { "id": "cm0it7ype0001ab12cdef0001", "name": "Service" }, "description": "Design and build of five page templates", "quantity": 5, "unitPrice": 800, "amount": 4000, "currency": "GBP", "isTaxed": true, "isTaxed2": false } ], "subtotalAmount": 4000, "discountType": "percentage", "discountRate": 10, "discountAmount": 400, "taxes": [ { "slot": 1, "name": "VAT", "rate": 20, "amount": 720, "currency": "GBP" } ], "taxMode": "simple", "totalAmount": 4320, "notes": "<p>Valid for 30 days.</p>", "shareUrl": "https://app.onesuite.io/estimate/cm3k8q2v1pubkey00000000001", "sentAt": null, "acceptedAt": null, "declinedAt": null, "invoice": null, "createdBy": { "id": "cm0mem0001ab12cdef000001", "name": "Sam Lee" }, "createdAt": "2026-11-11T16:20:02.118Z", "updatedAt": "2026-11-11T16:41:57.903Z" }}Delete an estimate
Section titled “Delete an estimate”Deletes the estimate and its history. An estimate that an invoice was created from cannot be deleted; delete that invoice first if the conversion was a mistake.
DELETE /v1/estimates/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The estimate’s id. |
Rules
409when an invoice was created from this estimate.404when the estimate is not in the business.403when the token’s person may not delete invoices.
Example request
curl "https://api.onesuite.io/v1/estimates/cm3k8q2v10004ab12cdef3456" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/estimates/cm3k8q2v10004ab12cdef3456", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Estimate deleted"}Send an estimate
Section titled “Send an estimate”Emails the estimate to the client, with a link to read, accept or decline it online and, if you ask, the PDF attached. A Draft becomes Sent; sending an estimate again keeps its status and updates sentAt. The send is added to the estimate’s history. Subject and message may use the placeholders the app offers, such as {{estimate.number}}, {{estimate.amount}} and {{client.name}}.
POST /v1/estimates/:id/sendParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The estimate’s id. |
recipients |
body | array of object | Yes | Who to send to, each { email } or { personId } (the id of one of the client’s people). At least 1, at most 5. |
cc |
body | array of object | No | Copy recipients, same form, at most 5. |
bcc |
body | array of object | No | Blind copy recipients, same form, at most 5. |
subject |
body | string | No | Email subject; defaults to “Estimate {{estimate.number}} from {{business.name}}”. |
body |
body | string | No | Email message, plain text or HTML; defaults to the business’s estimate email. |
isPdfAttached |
body | boolean | No | Attach the estimate as a PDF. Default false. |
Rules
400when there is no recipient, more than 5 in a list, an address is invalid, or a person is not one of the client’s people or has no email.429when the business sends through OneSuite’s own sending address (it has none of its own) and has used today’s sending allowance.404when the estimate is not in the business.403when the token’s person may not edit invoices.- The email goes out at once and cannot be recalled. Answers 200 with the estimate.
Example request
curl "https://api.onesuite.io/v1/estimates/cm3k8q2v10004ab12cdef3456/send" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \const response = await fetch("https://api.onesuite.io/v1/estimates/cm3k8q2v10004ab12cdef3456/send", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ recipients: [ { }, ], isPdfAttached: true, }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cm3k8q2v10004ab12cdef3456", "number": "EST-0012", "subject": "Website refresh, phase 1", "status": "sent", "client": { "id": "cm1a2b3c40001xy98zt7654ab", "name": "Northwind Studio" }, "billTo": { "name": "Alex Morgan", "company": "Northwind Studio", "address": "12 Harbour Road, Bristol BS1 4AB", "phone": null, "vatNumber": null }, "poNumber": "PO-2291", "issueDate": "2026-11-11", "currency": "GBP", "lineItems": [ { "id": "cm3k8q2v10005ab12cdef3457", "itemType": { "id": "cm0it7ype0001ab12cdef0001", "name": "Service" }, "description": "Design and build of five page templates", "quantity": 5, "unitPrice": 800, "amount": 4000, "currency": "GBP", "isTaxed": true, "isTaxed2": false } ], "subtotalAmount": 4000, "discountType": "percentage", "discountRate": 10, "discountAmount": 400, "taxes": [ { "slot": 1, "name": "VAT", "rate": 20, "amount": 720, "currency": "GBP" } ], "taxMode": "simple", "totalAmount": 4320, "notes": "<p>Valid for 30 days.</p>", "shareUrl": "https://app.onesuite.io/estimate/cm3k8q2v1pubkey00000000001", "sentAt": "2026-11-12T10:04:31.512Z", "acceptedAt": null, "declinedAt": null, "invoice": null, "createdBy": { "id": "cm0mem0001ab12cdef000001", "name": "Sam Lee" }, "createdAt": "2026-11-11T16:20:02.118Z", "updatedAt": "2026-11-12T10:04:31.540Z" }}Mark an estimate accepted
Section titled “Mark an estimate accepted”Records that the client accepted the estimate, for example when the answer came by phone or email. Works on a Draft or Sent estimate. Adds an entry to the history.
POST /v1/estimates/:id/acceptParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The estimate’s id. |
Rules
409when the estimate is already accepted, or is declined (revert the decision first).404when the estimate is not in the business.403when the token’s person may not edit invoices.
Example request
curl "https://api.onesuite.io/v1/estimates/cm3k8q2v10004ab12cdef3456/accept" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/estimates/cm3k8q2v10004ab12cdef3456/accept", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm3k8q2v10004ab12cdef3456", "number": "EST-0012", "subject": "Website refresh, phase 1", "status": "accepted", "client": { "id": "cm1a2b3c40001xy98zt7654ab", "name": "Northwind Studio" }, "billTo": { "name": "Alex Morgan", "company": "Northwind Studio", "address": "12 Harbour Road, Bristol BS1 4AB", "phone": null, "vatNumber": null }, "poNumber": "PO-2291", "issueDate": "2026-11-11", "currency": "GBP", "lineItems": [ { "id": "cm3k8q2v10005ab12cdef3457", "itemType": { "id": "cm0it7ype0001ab12cdef0001", "name": "Service" }, "description": "Design and build of five page templates", "quantity": 5, "unitPrice": 800, "amount": 4000, "currency": "GBP", "isTaxed": true, "isTaxed2": false } ], "subtotalAmount": 4000, "discountType": "percentage", "discountRate": 10, "discountAmount": 400, "taxes": [ { "slot": 1, "name": "VAT", "rate": 20, "amount": 720, "currency": "GBP" } ], "taxMode": "simple", "totalAmount": 4320, "notes": "<p>Valid for 30 days.</p>", "shareUrl": "https://app.onesuite.io/estimate/cm3k8q2v1pubkey00000000001", "sentAt": "2026-11-12T10:04:31.512Z", "acceptedAt": "2026-11-14T09:12:00.077Z", "declinedAt": null, "invoice": null, "createdBy": { "id": "cm0mem0001ab12cdef000001", "name": "Sam Lee" }, "createdAt": "2026-11-11T16:20:02.118Z", "updatedAt": "2026-11-14T09:12:00.081Z" }}Mark an estimate declined
Section titled “Mark an estimate declined”Records that the client declined the estimate, for example when the answer came by phone or email. Works on a Draft or Sent estimate. Adds an entry to the history.
POST /v1/estimates/:id/declineParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The estimate’s id. |
Rules
409when the estimate is already declined, or is accepted (revert the decision first).404when the estimate is not in the business.403when the token’s person may not edit invoices.
Example request
curl "https://api.onesuite.io/v1/estimates/cm3k8q2v10009ab12cdef3499/decline" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/estimates/cm3k8q2v10009ab12cdef3499/decline", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm3k8q2v10009ab12cdef3499", "number": "EST-0013", "subject": "Brand workshop", "status": "declined", "client": { "id": "cm1a2b3c40001xy98zt7654ab", "name": "Northwind Studio" }, "billTo": { "name": "Alex Morgan", "company": "Northwind Studio", "address": "12 Harbour Road, Bristol BS1 4AB", "phone": null, "vatNumber": null }, "poNumber": null, "issueDate": "2026-11-13", "currency": "GBP", "lineItems": [], "subtotalAmount": 0, "discountType": "percentage", "discountRate": 0, "discountAmount": 0, "taxes": [], "taxMode": "simple", "totalAmount": 0, "notes": null, "shareUrl": "https://app.onesuite.io/estimate/cm3k8q2v1pubkey00000000002", "sentAt": "2026-11-13T15:00:12.004Z", "acceptedAt": null, "declinedAt": "2026-11-15T11:30:45.220Z", "invoice": null, "createdBy": { "id": "cm0mem0001ab12cdef000001", "name": "Sam Lee" }, "createdAt": "2026-11-13T14:52:10.300Z", "updatedAt": "2026-11-15T11:30:45.224Z" }}Revert the decision on an estimate
Section titled “Revert the decision on an estimate”Undoes an accept or decline. The estimate goes back to Sent if it was ever emailed, otherwise to Draft, and can be edited again. The history records it as reopened.
POST /v1/estimates/:id/revertParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The estimate’s id. |
Rules
409when the estimate is neither accepted nor declined.404when the estimate is not in the business.403when the token’s person may not edit invoices.
Example request
curl "https://api.onesuite.io/v1/estimates/cm3k8q2v10009ab12cdef3499/revert" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/estimates/cm3k8q2v10009ab12cdef3499/revert", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm3k8q2v10009ab12cdef3499", "number": "EST-0013", "subject": "Brand workshop", "status": "sent", "client": { "id": "cm1a2b3c40001xy98zt7654ab", "name": "Northwind Studio" }, "billTo": { "name": "Alex Morgan", "company": "Northwind Studio", "address": "12 Harbour Road, Bristol BS1 4AB", "phone": null, "vatNumber": null }, "poNumber": null, "issueDate": "2026-11-13", "currency": "GBP", "lineItems": [], "subtotalAmount": 0, "discountType": "percentage", "discountRate": 0, "discountAmount": 0, "taxes": [], "taxMode": "simple", "totalAmount": 0, "notes": null, "shareUrl": "https://app.onesuite.io/estimate/cm3k8q2v1pubkey00000000002", "sentAt": "2026-11-13T15:00:12.004Z", "acceptedAt": null, "declinedAt": null, "invoice": null, "createdBy": { "id": "cm0mem0001ab12cdef000001", "name": "Sam Lee" }, "createdAt": "2026-11-13T14:52:10.300Z", "updatedAt": "2026-11-15T12:02:18.610Z" }}List an estimate’s history
Section titled “List an estimate’s history”Returns the estimate’s history, latest first: every send with its recipients, client views, accepts, declines, reverts and the creation of the invoice.
GET /v1/estimates/:id/historyParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The estimate’s id. |
page |
query | integer | No | Page number, default 1. |
limit |
query | integer | No | Rows per page, default 20, max 1000. |
updatedSince |
query | datetime | No | Only entries recorded or changed at or after this moment. Records deleted since then are not reported. |
Rules
404when the estimate is not in the business.403when the token’s person may not view invoices.
Example request
curl "https://api.onesuite.io/v1/estimates/cm3k8q2v10004ab12cdef3456/history?limit=2" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/estimates/cm3k8q2v10004ab12cdef3456/history?limit=2", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm3kemsg0002ab12cdef0002", "event": "accepted", "by": "Sam Lee", "member": { "id": "cm0mem0001ab12cdef000001", "name": "Sam Lee" }, "recipients": [], "subject": null, "body": null, "occurredAt": "2026-11-14T09:12:00.077Z" }, { "id": "cm3kemsg0001ab12cdef0001", "event": "sent", "by": "Sam Lee", "member": { "id": "cm0mem0001ab12cdef000001", "name": "Sam Lee" }, "recipients": [ { "name": "Alex Morgan", } ], "subject": "Estimate EST-0012 from Brightline Digital", "body": "<p>Hi Alex,</p><p>Please find estimate EST-0012 below.</p>", "occurredAt": "2026-11-12T10:04:31.512Z" } ], "totalCount": 2, "page": 1, "limit": 2}