Skip to content

Invoices

Invoices bill a client for tracked time, expenses, fees or anything you type. Each invoice carries its lines, taxes and discount, the payments received against it, and the emails sent to the client about it.

Every invoice endpoint acts as the person whose personal access token is used, with the invoice permissions their permission profile gives them in the app. Listing invoices needs the permission to view the invoice module (view-invoice-module); reading one invoice with its payments, messages and history needs the permission to view invoices (view-invoice); creating needs the permission to create invoices (create-invoice); changing lines, sending, changing status, and recording or removing payments need the permission to edit invoices (edit-invoice); deleting needs the permission to delete invoices (delete-invoice). Without the permission an endpoint needs, the answer is 403. Members, managers and administrators are treated alike: a permission covers every invoice of the business, with no narrowing to your own clients or projects, and invoice amounts are never hidden. Administrators hold every invoice permission; members and managers hold those their permission profile grants. A client portal login is refused with 403.

An invoice to a client, with its lines, money and where it stands.

Field Type Description
id string The invoice’s id. Read only.
number string The invoice number printed on the document. Given automatically on create when you leave it out. Can be null.
status string Where the invoice stands, matching the status the app shows: draft (started in the editor and never saved), open (saved but not sent yet; the app shows “Open · Saved”), sent (sent or marked as sent, including part-paid), late (sent, past its due date and still owing), paid (the recorded payments cover the total) or writtenOff. Read only.
sendingStage string How far the invoice got with the client, kept even when the status says paid, late or written off: saved (never sent), sent or viewed (the client opened it). Null on a draft. Read only. Can be null.
isOverdue boolean True while the invoice is late: sent, past its due date in the business’s time zone, and still owing. Read only.
type string oneTime, recurring (generated by a recurring invoice) or subscription (generated by a client subscription). Read only.
client object The client billed: { id, name }. Read only. Can be null.
project object The invoice’s main project, { id, name, code }. Lines can carry their own project as well. Read only. Can be null.
subject string The subject line printed under the invoice header. Can be null.
poNumber string The client’s purchase order number (“PO number” on the document). Can be null.
issueDate date The issue date.
dueDate date The day payment is due. Worked out from paymentTerm unless the term is custom. Can be null.
paymentTerm string uponReceipt, net15, net30, net45, net60 or custom.
periodStartDate date First day of the tracked time and expenses billed, on an invoice created from tracked time. Read only. Can be null.
periodEndDate date Last day of the tracked time and expenses billed. Read only. Can be null.
currency string ISO currency code of every amount on the invoice.
subtotalAmount decimal Sum of the line amounts, before discount and tax. Read only.
discountType string percentage or flat (a fixed amount). Null when the invoice has no discount. Can be null.
discountRate decimal The discount percentage, for a percentage discount. Null for a flat discount. Can be null.
discountAmount decimal What the discount takes off. For a flat discount this is the amount you set, capped at the subtotal. 0 while the discount is switched off.
isDiscountApplied boolean The invoice’s “Apply discount” switch. While off, the discount takes nothing and the rate is kept for later.
taxMode string simple (Tax 2 is charged on the pre-tax amount) or compound (Tax 2 is charged on top of Tax).
isTaxApplied boolean The invoice’s “Apply tax” switch. While off, every tax amount is 0.
taxes array of invoiceTax The taxes on the invoice: Tax (slot 1) and Tax 2 (slot 2), plus any older fixed tax rows.
taxTotal decimal Sum of the tax amounts. Read only.
totalAmount decimal The invoice total: subtotal less discount plus taxes. Read only.
paidAmount decimal Sum of the payments recorded on the invoice. An invoice marked paid without payments recorded against it reads as paid in full. Read only.
balanceDueAmount decimal What is still owed: total less payments. Negative when the client overpaid or the invoice is a credit; 0 once written off. Read only.
writtenOffAmount decimal What was still owed when the invoice was written off; 0 otherwise. Read only.
writeOffNote string The note given when the invoice was written off. Read only. Can be null.
sentAt datetime When the invoice was sent or marked as sent. Cleared by Mark as unsent. Null on a few invoices sent before this was recorded, until they are sent again. Read only. Can be null.
paidDate date The day of the payment that settled the invoice. Null until the invoice is paid. A day, not a moment: OneSuite records the day money arrived. Read only. Can be null.
writtenOffAt datetime When the invoice was written off. Null unless the status is writtenOff. Read only. Can be null.
notes string The notes printed under the lines (“Notes” on the document), as HTML. Null when the invoice hides them. Can be null.
canPayOnline boolean True when the client can pay this invoice online from its page.
paymentGateways array of string The online payment gateways offered on this invoice, such as stripe or paypal. Empty when canPayOnline is false. Read only.
shareUrl string The link to the client’s view of the invoice. The link carries its own access code for the client’s view; it is not an API token and has nothing to do with your personal access token. Null until the invoice has been shared for the first time. Read only. Can be null.
retainer object The retainer this invoice adds funds to or draws from, { id, name }. Read only. Can be null.
retainerRole string fund (the invoice adds funds to the retainer) or draw (it is paid from the retainer). Null without a retainer. Read only. Can be null.
estimate object The estimate this invoice was converted from, { id, number }. Read only. Can be null.
recurringInvoice object The recurring invoice that generated this one, { id }. Read only. Can be null.
createdBy object The team member who created the invoice, { id, name }. Read only. Can be null.
lineItems array of invoiceLineItem The lines, in printed order. Always on a single invoice; on the list only with includeLineItems=true. Read only.
createdAt datetime When the invoice was created. Read only.
updatedAt datetime When the invoice last changed. Read only.

One tax on an invoice.

Field Type Description
slot integer 1 for Tax, 2 for Tax 2. Null on an older tax row whose amount was fixed when it was saved; such rows can be read but not changed. Can be null.
name string The tax’s name as printed, such as “VAT”. Can be null.
rate decimal The percentage.
amount decimal The tax charged, on the lines opted in to this tax after their share of the discount. 0 while tax is switched off. Read only.
currency string The invoice’s currency. Read only.

One line of an invoice.

Field Type Description
id string The line’s id. It stays the same when the invoice or the line is edited. Read only.
position integer Where the line sits on the invoice, from 1.
itemType object The line’s item type, { id, name } (Service, Product or one of the business’s own). Can be null.
description string The line’s text. Can be null.
quantity decimal Quantity, or hours on a line billing tracked time.
unitPrice decimal Price per unit (“Unit price” on the document).
amount decimal The line’s amount. Normally quantity × unit price; it can be a total someone typed over.
currency string The invoice’s currency. Read only.
isTaxed boolean Whether Tax applies to this line.
isTaxed2 boolean Whether Tax 2 applies to this line.
project object The project the line bills, { id, name, code }. Can be null.
hasTimeEntries boolean True when the line bills tracked time. Removing it returns that time to uninvoiced. Read only.
hasExpenses boolean True when the line bills expenses. Removing it returns them to uninvoiced. Read only.

One payment received against an invoice.

Field Type Description
id string The payment’s id. Read only.
amount decimal Amount received, in the invoice’s currency. Always above zero.
currency string Currency of the amount. Read only.
paidDate date The day the money arrived.
source string How the payment reached OneSuite: manual (recorded by a person) or the gateway that took it, such as stripe, paypal, quickpay, razorpay, hitpay, chipin, or retainer (paid from a retainer). Read only.
paymentMethod string For a payment recorded by hand, how it was paid: bankTransfer, cheque, cash, card or other. Null when not said. Can be null.
reference string The cheque or transfer number, or the gateway’s charge id. Can be null.
notes string Notes on the payment. Can be null.
receiptNumber string The number of the payment’s receipt, such as R-0017. Read only. Can be null.
receiptSentAt datetime When the receipt was emailed to the client. Null if it was not. Read only. Can be null.
recordedBy object The team member who recorded it, { id, name }. Null for payments taken online or by a scheduled charge. Read only. Can be null.
createdAt datetime When the payment was recorded. Read only.
updatedAt datetime When the record last changed. Payments are never edited, so this equals createdAt. Read only.

One email sent to the client about an invoice: the invoice itself, a reminder or a thank-you.

Field Type Description
id string The message’s id. Read only.
kind string invoice (the invoice was emailed), reminder or thankYou. Read only.
isAutomatic boolean True for a reminder or thank-you OneSuite sent on its own. Read only.
sentAt datetime When it was sent. Read only.
sentBy object The team member who sent it, { id, name }. Null for automatic sends. Read only. Can be null.
recipients array of object Who it went to: [{ name, email }]. Empty for some messages sent before recipients were recorded. Read only.
cc array of string Copied addresses. Read only.
bcc array of string Blind-copied addresses. Read only.
subject string The subject as sent. Null for messages sent before subjects were recorded. Read only. Can be null.
body string The message as sent, as HTML. Null for messages sent before bodies were recorded. Read only. Can be null.
isPdfAttached boolean Whether the invoice PDF was attached. Null when not recorded. Read only. Can be null.
createdAt datetime When the message was logged. Read only.
updatedAt datetime When the record last changed. Read only.

The subject and body a message would carry if sent now.

Field Type Description
kind string invoice, reminder or thankYou — the message this preview is for. Read only.
subject string The subject the message would carry, with the invoice’s details filled in. Read only.
body string The message body, as HTML, with the invoice’s details filled in. Read only.
recipients array of object Who the app would suggest sending it to: [{ name, email }]. Read only.

One event in an invoice’s history: its creation, an edit, a send, a payment, a write-off or another change.

Field Type Description
id string The entry’s id. Read only.
event string What happened, worded as the invoice’s activity log in OneSuite words it, for example created, updated, payment recorded, payment deleted, marked as sent, written off or re-opened. It is descriptive text, not a fixed list of values. Read only.
member object The team member who did it, { id, name }. Null for automatic events and when no one is recorded. Read only. Can be null.
occurredAt datetime When it happened. Read only.

Returns the business’s invoices, newest issue date first, paged. Includes drafts (status draft) unless you filter them out. Lines are left out unless you ask for them.

GET /v1/invoices

Parameters

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, open, sent, late, paid, writtenOff.
type query string No oneTime, recurring or subscription.
filterClientIds query string No Comma-separated client ids, up to 5.
filterProjectIds query string No Comma-separated project ids; matches the invoice’s main project or any line’s project. none finds invoices with no project.
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 part of the invoice number, subject, client name or a line’s description.
sortField query string No issueDate (default), dueDate, number, client, status, totalAmount, paidAmount, balanceDueAmount, writtenOffAmount, paidDate, updatedAt, createdBy.
sortOrder query string No asc or desc (default).
updatedSince query datetime No Only invoices changed at or after this moment. Records deleted since then are not reported.
includeLineItems query boolean No Include each invoice’s lineItems. Default false.

Rules

  • 403 when the token’s person may not view the invoices module.
  • 400 when a filter value is not one of the allowed values or a date is not YYYY-MM-DD.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices?status=sent,late&limit=1" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cm4inv0000a1",
"number": "INV-0042",
"status": "late",
"sendingStage": "viewed",
"isOverdue": true,
"type": "oneTime",
"client": {
"id": "cm5client0acme",
"name": "Acme Design Co."
},
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"subject": "Brand refresh — November",
"poNumber": "PO-7781",
"issueDate": "2026-11-01",
"dueDate": "2026-11-15",
"paymentTerm": "net15",
"periodStartDate": "2026-11-01",
"periodEndDate": "2026-11-14",
"currency": "USD",
"subtotalAmount": 2115,
"discountType": "percentage",
"discountRate": 10,
"discountAmount": 211.5,
"isDiscountApplied": true,
"taxMode": "simple",
"isTaxApplied": true,
"taxes": [
{
"slot": 1,
"name": "VAT",
"rate": 5,
"amount": 84.38,
"currency": "USD"
}
],
"taxTotal": 84.38,
"totalAmount": 1987.88,
"paidAmount": 1000,
"balanceDueAmount": 987.88,
"writtenOffAmount": 0,
"writeOffNote": null,
"sentAt": "2026-11-01T10:12:44.000Z",
"paidDate": null,
"writtenOffAt": null,
"notes": "<p>Payment within 15 days by bank transfer.</p>",
"canPayOnline": true,
"paymentGateways": [
"stripe"
],
"shareUrl": "https://app.onesuite.io/invoice/cm4inv0000a1/view?token=7f3c…",
"retainer": null,
"retainerRole": null,
"estimate": null,
"recurringInvoice": null,
"createdBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"createdAt": "2026-11-01T09:58:03.000Z",
"updatedAt": "2026-11-12T16:40:21.000Z"
}
],
"totalCount": 14,
"page": 1,
"limit": 1
}

Returns one invoice with its lines and taxes.

GET /v1/invoices/:id

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.

Rules

  • 403 when the token’s person may not view invoices.
  • 404 when the invoice is not in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": {
"id": "cm4inv0000a1",
"number": "INV-0042",
"status": "late",
"sendingStage": "viewed",
"isOverdue": true,
"type": "oneTime",
"client": {
"id": "cm5client0acme",
"name": "Acme Design Co."
},
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"subject": "Brand refresh — November",
"poNumber": "PO-7781",
"issueDate": "2026-11-01",
"dueDate": "2026-11-15",
"paymentTerm": "net15",
"periodStartDate": "2026-11-01",
"periodEndDate": "2026-11-14",
"currency": "USD",
"subtotalAmount": 2115,
"discountType": "percentage",
"discountRate": 10,
"discountAmount": 211.5,
"isDiscountApplied": true,
"taxMode": "simple",
"isTaxApplied": true,
"taxes": [
{
"slot": 1,
"name": "VAT",
"rate": 5,
"amount": 84.38,
"currency": "USD"
}
],
"taxTotal": 84.38,
"totalAmount": 1987.88,
"paidAmount": 1000,
"balanceDueAmount": 987.88,
"writtenOffAmount": 0,
"writeOffNote": null,
"sentAt": "2026-11-01T10:12:44.000Z",
"paidDate": null,
"writtenOffAt": null,
"notes": "<p>Payment within 15 days by bank transfer.</p>",
"canPayOnline": true,
"paymentGateways": [
"stripe"
],
"shareUrl": "https://app.onesuite.io/invoice/cm4inv0000a1/view?token=7f3c…",
"retainer": null,
"retainerRole": null,
"estimate": null,
"recurringInvoice": null,
"createdBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"lineItems": [
{
"id": "cm3line0001design",
"position": 1,
"itemType": {
"id": "cm1itype0service",
"name": "Service"
},
"description": "Design work, 1–14 November",
"quantity": 12.5,
"unitPrice": 150,
"amount": 1875,
"currency": "USD",
"isTaxed": true,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": true,
"hasExpenses": false
},
{
"id": "cm3line0002hosting",
"position": 2,
"itemType": {
"id": "cm1itype0product",
"name": "Product"
},
"description": "Hosting, November",
"quantity": 1,
"unitPrice": 240,
"amount": 240,
"currency": "USD",
"isTaxed": false,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": false,
"hasExpenses": false
}
],
"createdAt": "2026-11-01T09:58:03.000Z",
"updatedAt": "2026-11-12T16:40:21.000Z"
}
}

Creates a free-form invoice for a client from the lines you send. The invoice is saved (status open, “Open · Saved”); nothing is emailed.

POST /v1/invoices

Parameters

Parameter In Type Required Description
clientId body string Yes The client to bill.
projectId body string No The invoice’s main project.
number body string No Invoice number. Left out, the next number is given.
poNumber body string No PO number.
subject body string No Subject line.
notes body string No Notes printed under the lines, as HTML or plain text.
issueDate body date No Issue date. Defaults to today in the business’s time zone.
paymentTerm body string No uponReceipt, net15, net30, net45, net60 or custom. With any term but custom, the due date is worked out from the issue date.
dueDate body date No Due date; used with paymentTerm custom.
currency body string No ISO currency code. Defaults to the client’s, then the business’s.
taxes body array of object No [{ slot, name, rate }] with slot 1 (Tax) and/or 2 (Tax 2). Sending it replaces both taxes; older fixed tax rows are kept.
taxMode body string No simple or compound.
isTaxApplied body boolean No The “Apply tax” switch.
discountType body string No percentage or flat.
discountRate body decimal No Discount percentage, with discountType percentage.
discountAmount body decimal No Discount amount, with discountType flat.
isDiscountApplied body boolean No The “Apply discount” switch.
canPayOnline body boolean No Offer online payment on the invoice page.
lineItems body array of object No Lines, each with the line fields: itemTypeId, description, quantity, unitPrice, amount, projectId, isTaxed, isTaxed2.

Rules

  • 403 when the token’s person may not create invoices, or the business’s plan has reached its invoice limit.
  • 400 when the client is not a client of this business, an item type or project is not found, a line’s quantity or unit price is not a number, or the due date is not a valid date.
  • 409 when the invoice number is already used.
  • Answers 201 with the new invoice.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"clientId":"cm5client0acme","subject":"Brand refresh — November","paymentTerm":"net15","taxes":[{"slot":1,"name":"VAT","rate":5}],"discountType":"percentage","discountRate":10,"lineItems":[{"itemTypeId":"cm1itype0service","description":"Design work, 1–14 November","quantity":12.5,"unitPrice":150,"projectId":"cm2proj0brand"},{"itemTypeId":"cm1itype0product","description":"Hosting, November","quantity":1,"unitPrice":240,"isTaxed":false}]}'

Example response — status 201

{
"data": {
"id": "cm4inv0000a1",
"number": "INV-0042",
"status": "open",
"sendingStage": "saved",
"isOverdue": false,
"type": "oneTime",
"client": {
"id": "cm5client0acme",
"name": "Acme Design Co."
},
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"subject": "Brand refresh — November",
"poNumber": "PO-7781",
"issueDate": "2026-11-01",
"dueDate": "2026-11-15",
"paymentTerm": "net15",
"periodStartDate": null,
"periodEndDate": null,
"currency": "USD",
"subtotalAmount": 2115,
"discountType": "percentage",
"discountRate": 10,
"discountAmount": 211.5,
"isDiscountApplied": true,
"taxMode": "simple",
"isTaxApplied": true,
"taxes": [
{
"slot": 1,
"name": "VAT",
"rate": 5,
"amount": 84.38,
"currency": "USD"
}
],
"taxTotal": 84.38,
"totalAmount": 1987.88,
"paidAmount": 0,
"balanceDueAmount": 1987.88,
"writtenOffAmount": 0,
"writeOffNote": null,
"sentAt": null,
"paidDate": null,
"writtenOffAt": null,
"notes": "<p>Payment within 15 days by bank transfer.</p>",
"canPayOnline": true,
"paymentGateways": [
"stripe"
],
"shareUrl": null,
"retainer": null,
"retainerRole": null,
"estimate": null,
"recurringInvoice": null,
"createdBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"lineItems": [
{
"id": "cm3line0001design",
"position": 1,
"itemType": {
"id": "cm1itype0service",
"name": "Service"
},
"description": "Design work, 1–14 November",
"quantity": 12.5,
"unitPrice": 150,
"amount": 1875,
"currency": "USD",
"isTaxed": true,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": false,
"hasExpenses": false
},
{
"id": "cm3line0002hosting",
"position": 2,
"itemType": {
"id": "cm1itype0product",
"name": "Product"
},
"description": "Hosting, November",
"quantity": 1,
"unitPrice": 240,
"amount": 240,
"currency": "USD",
"isTaxed": false,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": false,
"hasExpenses": false
}
],
"createdAt": "2026-11-01T09:58:03.000Z",
"updatedAt": "2026-11-12T16:40:21.000Z"
}
}

Creates an invoice for a client from the uninvoiced billable hours, expenses and fees on the projects you choose, grouped into lines the way you ask. The time and expenses billed are marked invoiced. The invoice is saved (status open); nothing is emailed.

POST /v1/invoices/from-tracked-time

Parameters

Parameter In Type Required Description
clientId body string Yes The client to bill.
projectIds body array of string Yes The client’s billable projects to bill. One invoice bills in one currency.
hours body object No { include, from, to, groupBy, details, approval }. include: all (all uninvoiced hours, the default), range (between from and to) or none. groupBy: workType (default), member, project or detailed. details (for detailed): any of project, workType, member, date, notes. approval: all (default — every hour not sent back), approved or approvedAndPending.
expenses body object No { include, from, to, groupBy, details, approval, attachReceipts }. include, from, to, details and approval work as for hours. groupBy: expenseCategory (default), member, project or detailed. attachReceipts: attach an expense report with the receipt images.
drawFromRetainer body boolean No Pay the invoice from the client’s retainer, which must cover every chosen project. Default false.
number body string No Invoice number. Left out, the next number is given.
poNumber body string No PO number.
subject body string No Subject line.
notes body string No Notes printed under the lines, as HTML or plain text.
issueDate body date No Issue date. Defaults to today in the business’s time zone.
paymentTerm body string No uponReceipt, net15, net30, net45, net60 or custom. With any term but custom, the due date is worked out from the issue date.
dueDate body date No Due date; used with paymentTerm custom.
currency body string No ISO currency code. Defaults to the client’s, then the business’s.
taxes body array of object No [{ slot, name, rate }] with slot 1 (Tax) and/or 2 (Tax 2). Sending it replaces both taxes; older fixed tax rows are kept.
taxMode body string No simple or compound.
isTaxApplied body boolean No The “Apply tax” switch.
discountType body string No percentage or flat.
discountRate body decimal No Discount percentage, with discountType percentage.
discountAmount body decimal No Discount amount, with discountType flat.
isDiscountApplied body boolean No The “Apply discount” switch.
canPayOnline body boolean No Offer online payment on the invoice page.

Rules

  • 403 when the token’s person may not create invoices.
  • 400 when a project is not the client’s, a project is non-billable, the projects bill in different currencies, or a date range is invalid.
  • 409 when a timer is running on one of the projects in the chosen dates — stop it first.
  • 409 when no retainer covers every chosen project, or the retainer holds another currency.
  • Hours and expenses already on another invoice that has never been saved (a draft) are left out.
  • Answers 201 with the new invoice; periodStartDate and periodEndDate show the dates billed.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/from-tracked-time" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"clientId":"cm5client0acme","projectIds":["cm2proj0brand"],"hours":{"include":"range","from":"2026-11-01","to":"2026-11-14","groupBy":"workType"},"expenses":{"include":"none"},"paymentTerm":"net15"}'

Example response — status 201

{
"data": {
"id": "cm4inv0000a1",
"number": "INV-0042",
"status": "open",
"sendingStage": "saved",
"isOverdue": false,
"type": "oneTime",
"client": {
"id": "cm5client0acme",
"name": "Acme Design Co."
},
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"subject": "Brand refresh — November",
"poNumber": "PO-7781",
"issueDate": "2026-11-01",
"dueDate": "2026-11-15",
"paymentTerm": "net15",
"periodStartDate": "2026-11-01",
"periodEndDate": "2026-11-14",
"currency": "USD",
"subtotalAmount": 2115,
"discountType": "percentage",
"discountRate": 10,
"discountAmount": 211.5,
"isDiscountApplied": true,
"taxMode": "simple",
"isTaxApplied": true,
"taxes": [
{
"slot": 1,
"name": "VAT",
"rate": 5,
"amount": 84.38,
"currency": "USD"
}
],
"taxTotal": 84.38,
"totalAmount": 1987.88,
"paidAmount": 0,
"balanceDueAmount": 1987.88,
"writtenOffAmount": 0,
"writeOffNote": null,
"sentAt": null,
"paidDate": null,
"writtenOffAt": null,
"notes": "<p>Payment within 15 days by bank transfer.</p>",
"canPayOnline": true,
"paymentGateways": [
"stripe"
],
"shareUrl": null,
"retainer": null,
"retainerRole": null,
"estimate": null,
"recurringInvoice": null,
"createdBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"lineItems": [
{
"id": "cm3line0001design",
"position": 1,
"itemType": {
"id": "cm1itype0service",
"name": "Service"
},
"description": "Design work, 1–14 November",
"quantity": 12.5,
"unitPrice": 150,
"amount": 1875,
"currency": "USD",
"isTaxed": true,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": true,
"hasExpenses": false
},
{
"id": "cm3line0002hosting",
"position": 2,
"itemType": {
"id": "cm1itype0product",
"name": "Product"
},
"description": "Hosting, November",
"quantity": 1,
"unitPrice": 240,
"amount": 240,
"currency": "USD",
"isTaxed": false,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": false,
"hasExpenses": false
}
],
"createdAt": "2026-11-01T09:58:03.000Z",
"updatedAt": "2026-11-12T16:40:21.000Z"
}
}

Changes the invoice’s header: client, dates, terms, taxes, discount, subject, notes, number. Fields you leave out keep their value. Lines are changed through the line item endpoints. Any invoice can be edited, whatever its status; its status and sent date stay as they are.

PATCH /v1/invoices/:id

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.
clientId body string No Move the invoice to another client.
projectId body string No The invoice’s main project.
number body string No Invoice number. Must not be used by another invoice.
poNumber body string No PO number.
subject body string No Subject line.
notes body string No Notes printed under the lines, as HTML or plain text.
issueDate body date No Issue date.
paymentTerm body string No uponReceipt, net15, net30, net45, net60 or custom. With any term but custom, the due date is worked out from the issue date.
dueDate body date No Due date; used with paymentTerm custom.
currency body string No ISO currency code.
taxes body array of object No [{ slot, name, rate }] with slot 1 (Tax) and/or 2 (Tax 2). Sending it replaces both taxes; older fixed tax rows are kept.
taxMode body string No simple or compound.
isTaxApplied body boolean No The “Apply tax” switch.
discountType body string No percentage or flat.
discountRate body decimal No Discount percentage, with discountType percentage.
discountAmount body decimal No Discount amount, with discountType flat.
isDiscountApplied body boolean No The “Apply discount” switch.
canPayOnline body boolean No Offer online payment on the invoice page.

Rules

  • 403 when the token’s person may not edit invoices.
  • 404 when the invoice is not in this business.
  • 409 while an automatic subscription charge on the invoice is still settling.
  • Totals, balance and status are recalculated after every change: a paid invoice whose total rises becomes owing again.
  • 409 when the client cannot change because the invoice already bills that client’s tracked time, expenses or retainer.
  • 409 when the invoice number is already used.
  • Answers 200 with the updated invoice.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1" \
-X PATCH \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"paymentTerm":"net30"}'

Example response — status 200

{
"data": {
"id": "cm4inv0000a1",
"number": "INV-0042",
"status": "sent",
"sendingStage": "viewed",
"isOverdue": false,
"type": "oneTime",
"client": {
"id": "cm5client0acme",
"name": "Acme Design Co."
},
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"subject": "Brand refresh — November",
"poNumber": "PO-7781",
"issueDate": "2026-11-01",
"dueDate": "2026-11-30",
"paymentTerm": "net30",
"periodStartDate": "2026-11-01",
"periodEndDate": "2026-11-14",
"currency": "USD",
"subtotalAmount": 2115,
"discountType": "percentage",
"discountRate": 10,
"discountAmount": 211.5,
"isDiscountApplied": true,
"taxMode": "simple",
"isTaxApplied": true,
"taxes": [
{
"slot": 1,
"name": "VAT",
"rate": 5,
"amount": 84.38,
"currency": "USD"
}
],
"taxTotal": 84.38,
"totalAmount": 1987.88,
"paidAmount": 1000,
"balanceDueAmount": 987.88,
"writtenOffAmount": 0,
"writeOffNote": null,
"sentAt": "2026-11-01T10:12:44.000Z",
"paidDate": null,
"writtenOffAt": null,
"notes": "<p>Payment within 15 days by bank transfer.</p>",
"canPayOnline": true,
"paymentGateways": [
"stripe"
],
"shareUrl": "https://app.onesuite.io/invoice/cm4inv0000a1/view?token=7f3c…",
"retainer": null,
"retainerRole": null,
"estimate": null,
"recurringInvoice": null,
"createdBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"lineItems": [
{
"id": "cm3line0001design",
"position": 1,
"itemType": {
"id": "cm1itype0service",
"name": "Service"
},
"description": "Design work, 1–14 November",
"quantity": 12.5,
"unitPrice": 150,
"amount": 1875,
"currency": "USD",
"isTaxed": true,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": true,
"hasExpenses": false
},
{
"id": "cm3line0002hosting",
"position": 2,
"itemType": {
"id": "cm1itype0product",
"name": "Product"
},
"description": "Hosting, November",
"quantity": 1,
"unitPrice": 240,
"amount": 240,
"currency": "USD",
"isTaxed": false,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": false,
"hasExpenses": false
}
],
"createdAt": "2026-11-01T09:58:03.000Z",
"updatedAt": "2026-11-12T16:40:21.000Z"
}
}

Deletes the invoice in any status. Time and expenses it billed become uninvoiced again; its payments are removed with it.

DELETE /v1/invoices/:id

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.

Rules

  • 403 when the token’s person may not delete invoices.
  • 404 when the invoice is not in this business.
  • 409 while an automatic subscription charge on the invoice is still settling.
  • Answers 200 with a confirmation message.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Invoice deleted"
}

Adds a line to the invoice, at the end unless you give a position. Other lines keep their ids.

POST /v1/invoices/:id/line-items

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.
position body integer No Where to put the line, from 1.
itemTypeId body string No Item type id (see Item types). Defaults to the business’s default type for hours.
description body string No Line text.
quantity body decimal No Quantity. Defaults to 1.
unitPrice body decimal No Price per unit.
amount body decimal No A line amount that replaces quantity × unit price. Left out, it is worked out.
projectId body string No Project the line bills.
isTaxed body boolean No Apply Tax to this line. Defaults to true.
isTaxed2 body boolean No Apply Tax 2 to this line. Defaults to false.

Rules

  • 403 when the token’s person may not edit invoices.
  • 404 when the invoice is not in this business.
  • 409 while an automatic subscription charge on the invoice is still settling.
  • Totals, balance and status are recalculated after every change: a paid invoice whose total rises becomes owing again.
  • 400 when the item type or project is not found in this business.
  • Answers 201 with the new line.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/line-items" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"itemTypeId":"cm1itype0product","description":"Set-up fee","quantity":1,"unitPrice":300,"isTaxed":false}'

Example response — status 201

{
"data": {
"id": "cm3line0003setup",
"position": 3,
"itemType": {
"id": "cm1itype0product",
"name": "Product"
},
"description": "Set-up fee",
"quantity": 1,
"unitPrice": 300,
"amount": 300,
"currency": "USD",
"isTaxed": false,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": false,
"hasExpenses": false
}
}

Changes one line. Fields you leave out keep their value; the line keeps its id.

PATCH /v1/invoices/:id/line-items/:lineItemId

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.
lineItemId path string Yes The line’s id.
position body integer No Move the line to this position, from 1.
itemTypeId body string No Item type id (see Item types).
description body string No Line text.
quantity body decimal No Quantity.
unitPrice body decimal No Price per unit.
amount body decimal No A line amount that replaces quantity × unit price.
projectId body string No Project the line bills.
isTaxed body boolean No Apply Tax to this line.
isTaxed2 body boolean No Apply Tax 2 to this line.

Rules

  • 403 when the token’s person may not edit invoices.
  • 404 when the invoice is not in this business.
  • 409 while an automatic subscription charge on the invoice is still settling.
  • Totals, balance and status are recalculated after every change: a paid invoice whose total rises becomes owing again.
  • 404 when the line is not on this invoice.
  • 400 when the item type or project is not found in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/line-items/cm3line0001design" \
-X PATCH \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"quantity":13}'

Example response — status 200

{
"data": {
"id": "cm3line0001design",
"position": 1,
"itemType": {
"id": "cm1itype0service",
"name": "Service"
},
"description": "Design work, 1–14 November",
"quantity": 13,
"unitPrice": 150,
"amount": 1950,
"currency": "USD",
"isTaxed": true,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": true,
"hasExpenses": false
}
}

Removes one line. Tracked time and expenses it billed become uninvoiced again.

DELETE /v1/invoices/:id/line-items/:lineItemId

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.
lineItemId path string Yes The line’s id.

Rules

  • 403 when the token’s person may not edit invoices.
  • 404 when the invoice is not in this business.
  • 409 while an automatic subscription charge on the invoice is still settling.
  • Totals, balance and status are recalculated after every change: a paid invoice whose total rises becomes owing again.
  • 404 when the line is not on this invoice.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/line-items/cm3line0002hosting" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Line item removed"
}

Emails the invoice to the client. A saved invoice becomes sent. The email uses the business’s invoice message unless you give your own subject and body.

POST /v1/invoices/:id/send

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.
recipients body array of object Yes [{ name, email }], 1 to 5.
cc body array of string No Up to 10 addresses.
bcc body array of string No Up to 10 addresses.
subject body string No Subject, up to 255 characters. Placeholders such as {{invoice.number}} are filled in.
body body string No Message body (HTML or plain text). Placeholders are filled in.
isPdfAttached body boolean No Attach the invoice PDF. Default true.
includeLink body boolean No Include the link to the invoice page. Default true.
sendMeACopy body boolean No Copy the token’s person. Default false.
senderEmail body string No Send from this mailbox, which must be connected to the business. By default the business’s invoice sender is used.

Rules

  • 403 when the token’s person may not edit invoices.
  • 404 when the invoice is not in this business.
  • 400 when there is no recipient, more than 5 recipients, more than 10 cc or bcc, an invalid address, or a sender that is not connected to this business.
  • 409 when the invoice is a draft (save it first) or written off (re-open it first).
  • 429 when the business sends through OneSuite’s own sender and has used today’s allowance; connect a mailbox to send without a limit.
  • A repeat of the same send within moments is not sent twice; the earlier message is returned with 200.
  • Answers 201 with the message.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/send" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"recipients":[{"name":"Sam Rivera","email":"[email protected]"}]}'

Example response — status 201

{
"data": {
"id": "cm8log0001",
"kind": "invoice",
"isAutomatic": false,
"sentAt": "2026-11-01T10:12:44.000Z",
"sentBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"recipients": [
{
"name": "Sam Rivera",
"email": "[email protected]"
}
],
"cc": [],
"bcc": [],
"subject": "Invoice INV-0042 from Lee Studio",
"body": "<p>Hi Sam, please find invoice INV-0042 attached…</p>",
"isPdfAttached": true,
"createdAt": "2026-11-01T10:12:44.000Z",
"updatedAt": "2026-11-01T10:12:44.000Z"
}
}

Emails a payment reminder for a sent, unpaid invoice, using the business’s reminder message unless you give your own.

POST /v1/invoices/:id/send-reminder

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.
subject body string No Subject; replaces the business’s reminder subject.
body body string No Message body (HTML or plain text); replaces the business’s reminder message.

Rules

  • 403 when the token’s person may not edit invoices.
  • 404 when the invoice is not in this business.
  • 409 when the invoice is paid, written off, or has not been sent.
  • 429 when the business sends through OneSuite’s own sender and has used today’s allowance.
  • Answers 201 with the message.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/send-reminder" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'

Example response — status 201

{
"data": {
"id": "cm8log0002",
"kind": "reminder",
"isAutomatic": false,
"sentAt": "2026-11-18T09:00:12.000Z",
"sentBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"recipients": [
{
"name": "Sam Rivera",
"email": "[email protected]"
}
],
"cc": [],
"bcc": [],
"subject": "Reminder: invoice INV-0042 is overdue",
"body": "<p>Hi Sam, a reminder that invoice INV-0042…</p>",
"isPdfAttached": true,
"createdAt": "2026-11-18T09:00:12.000Z",
"updatedAt": "2026-11-18T09:00:12.000Z"
}
}

Emails a thank-you for a paid invoice to the invoice’s contacts, using the business’s thank-you message unless you give your own.

POST /v1/invoices/:id/send-thank-you

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.
subject body string No Subject; replaces the business’s thank-you subject.
body body string No Message body (HTML or plain text); replaces the business’s thank-you message.

Rules

  • 403 when the token’s person may not edit invoices.
  • 404 when the invoice is not in this business.
  • 409 when the invoice is not paid.
  • 400 when the invoice has no contact email, or more than 5.
  • 429 when the business sends through OneSuite’s own sender and has used today’s allowance.
  • Answers 201 with the message.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/send-thank-you" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'

Example response — status 201

{
"data": {
"id": "cm8log0003",
"kind": "thankYou",
"isAutomatic": false,
"sentAt": "2026-11-01T10:12:44.000Z",
"sentBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"recipients": [
{
"name": "Sam Rivera",
"email": "[email protected]"
}
],
"cc": [],
"bcc": [],
"subject": "Thank you for your payment",
"body": "<p>Thank you, we received your payment for INV-0042.</p>",
"isPdfAttached": false,
"createdAt": "2026-11-01T10:12:44.000Z",
"updatedAt": "2026-11-01T10:12:44.000Z"
}
}

Returns the subject and body an invoice email, reminder or thank-you would carry if sent now, with the invoice’s details filled in, and the suggested recipients.

GET /v1/invoices/:id/message-preview

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.
kind query string No invoice (default), reminder or thankYou.

Rules

  • 403 when the token’s person may not view invoices.
  • 404 when the invoice is not in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/message-preview?kind=reminder" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": {
"kind": "reminder",
"subject": "Reminder: invoice INV-0042 is overdue",
"body": "<p>Hi Sam, a reminder that invoice INV-0042 for 987.88 USD was due on 15 Nov 2026…</p>",
"recipients": [
{
"name": "Sam Rivera",
"email": "[email protected]"
}
]
}
}

Returns the emails sent to the client about the invoice (the invoice itself, reminders and thank-yous), latest first, paged.

GET /v1/invoices/:id/messages

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.
page query integer No Page number, default 1.
limit query integer No Rows per page, default 20, max 1000.
kind query string No Comma-separated: invoice, reminder, thankYou.
updatedSince query datetime No Only messages logged at or after this moment. Records deleted since then are not reported.

Rules

  • 403 when the token’s person may not view invoices.
  • 404 when the invoice is not in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/messages" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cm8log0001",
"kind": "invoice",
"isAutomatic": false,
"sentAt": "2026-11-01T10:12:44.000Z",
"sentBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"recipients": [
{
"name": "Sam Rivera",
"email": "[email protected]"
}
],
"cc": [],
"bcc": [],
"subject": "Invoice INV-0042 from Lee Studio",
"body": "<p>Hi Sam, please find invoice INV-0042 attached…</p>",
"isPdfAttached": true,
"createdAt": "2026-11-01T10:12:44.000Z",
"updatedAt": "2026-11-01T10:12:44.000Z"
}
],
"totalCount": 1,
"page": 1,
"limit": 20
}

Records that a saved invoice was sent some other way, without emailing anyone. The invoice becomes sent.

POST /v1/invoices/:id/mark-as-sent

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.
sentDate body date No The day it was sent; default today. Cannot be in the future.

Rules

  • 403 when the token’s person may not edit invoices.
  • 404 when the invoice is not in this business.
  • 409 when the invoice is a draft (save it first), already sent, or written off (re-open it first).
  • 400 when the sent date is in the future or not a date.
  • 409 when the invoice changed at the same moment; read it again and retry.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/mark-as-sent" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"sentDate":"2026-11-01"}'

Example response — status 200

{
"data": {
"id": "cm4inv0000a1",
"number": "INV-0042",
"status": "sent",
"sendingStage": "sent",
"isOverdue": false,
"type": "oneTime",
"client": {
"id": "cm5client0acme",
"name": "Acme Design Co."
},
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"subject": "Brand refresh — November",
"poNumber": "PO-7781",
"issueDate": "2026-11-01",
"dueDate": "2026-11-15",
"paymentTerm": "net15",
"periodStartDate": "2026-11-01",
"periodEndDate": "2026-11-14",
"currency": "USD",
"subtotalAmount": 2115,
"discountType": "percentage",
"discountRate": 10,
"discountAmount": 211.5,
"isDiscountApplied": true,
"taxMode": "simple",
"isTaxApplied": true,
"taxes": [
{
"slot": 1,
"name": "VAT",
"rate": 5,
"amount": 84.38,
"currency": "USD"
}
],
"taxTotal": 84.38,
"totalAmount": 1987.88,
"paidAmount": 1000,
"balanceDueAmount": 987.88,
"writtenOffAmount": 0,
"writeOffNote": null,
"sentAt": "2026-11-01T10:12:44.000Z",
"paidDate": null,
"writtenOffAt": null,
"notes": "<p>Payment within 15 days by bank transfer.</p>",
"canPayOnline": true,
"paymentGateways": [
"stripe"
],
"shareUrl": "https://app.onesuite.io/invoice/cm4inv0000a1/view?token=7f3c…",
"retainer": null,
"retainerRole": null,
"estimate": null,
"recurringInvoice": null,
"createdBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"lineItems": [
{
"id": "cm3line0001design",
"position": 1,
"itemType": {
"id": "cm1itype0service",
"name": "Service"
},
"description": "Design work, 1–14 November",
"quantity": 12.5,
"unitPrice": 150,
"amount": 1875,
"currency": "USD",
"isTaxed": true,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": true,
"hasExpenses": false
},
{
"id": "cm3line0002hosting",
"position": 2,
"itemType": {
"id": "cm1itype0product",
"name": "Product"
},
"description": "Hosting, November",
"quantity": 1,
"unitPrice": 240,
"amount": 240,
"currency": "USD",
"isTaxed": false,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": false,
"hasExpenses": false
}
],
"createdAt": "2026-11-01T09:58:03.000Z",
"updatedAt": "2026-11-12T16:40:21.000Z"
}
}

Closes a sent invoice for what is still owed. Its status becomes writtenOff, its balance 0, and writtenOffAmount shows what was given up. Payments stay.

POST /v1/invoices/:id/write-off

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.
note body string No Why, up to 2,000 characters.

Rules

  • 403 when the token’s person may not edit invoices.
  • 404 when the invoice is not in this business.
  • 409 when the invoice has not been sent or marked as sent, is paid, or is already written off.
  • 400 when the note is too long.
  • 409 when the invoice changed at the same moment; read it again and retry.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/write-off" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"note":"Client closed; agreed settlement."}'

Example response — status 200

{
"data": {
"id": "cm4inv0000a1",
"number": "INV-0042",
"status": "writtenOff",
"sendingStage": "viewed",
"isOverdue": false,
"type": "oneTime",
"client": {
"id": "cm5client0acme",
"name": "Acme Design Co."
},
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"subject": "Brand refresh — November",
"poNumber": "PO-7781",
"issueDate": "2026-11-01",
"dueDate": "2026-11-15",
"paymentTerm": "net15",
"periodStartDate": "2026-11-01",
"periodEndDate": "2026-11-14",
"currency": "USD",
"subtotalAmount": 2115,
"discountType": "percentage",
"discountRate": 10,
"discountAmount": 211.5,
"isDiscountApplied": true,
"taxMode": "simple",
"isTaxApplied": true,
"taxes": [
{
"slot": 1,
"name": "VAT",
"rate": 5,
"amount": 84.38,
"currency": "USD"
}
],
"taxTotal": 84.38,
"totalAmount": 1987.88,
"paidAmount": 1000,
"balanceDueAmount": 0,
"writtenOffAmount": 987.88,
"writeOffNote": "Client closed; agreed settlement.",
"sentAt": "2026-11-01T10:12:44.000Z",
"paidDate": null,
"writtenOffAt": "2026-11-20T11:05:00.000Z",
"notes": "<p>Payment within 15 days by bank transfer.</p>",
"canPayOnline": true,
"paymentGateways": [
"stripe"
],
"shareUrl": "https://app.onesuite.io/invoice/cm4inv0000a1/view?token=7f3c…",
"retainer": null,
"retainerRole": null,
"estimate": null,
"recurringInvoice": null,
"createdBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"lineItems": [
{
"id": "cm3line0001design",
"position": 1,
"itemType": {
"id": "cm1itype0service",
"name": "Service"
},
"description": "Design work, 1–14 November",
"quantity": 12.5,
"unitPrice": 150,
"amount": 1875,
"currency": "USD",
"isTaxed": true,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": true,
"hasExpenses": false
},
{
"id": "cm3line0002hosting",
"position": 2,
"itemType": {
"id": "cm1itype0product",
"name": "Product"
},
"description": "Hosting, November",
"quantity": 1,
"unitPrice": 240,
"amount": 240,
"currency": "USD",
"isTaxed": false,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": false,
"hasExpenses": false
}
],
"createdAt": "2026-11-01T09:58:03.000Z",
"updatedAt": "2026-11-12T16:40:21.000Z"
}
}

Undoes a write-off. The invoice owes its balance again.

POST /v1/invoices/:id/reopen

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.

Rules

  • 403 when the token’s person may not edit invoices.
  • 404 when the invoice is not in this business.
  • 409 when the invoice is not written off.
  • 409 when the invoice changed at the same moment; read it again and retry.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/reopen" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'

Example response — status 200

{
"data": {
"id": "cm4inv0000a1",
"number": "INV-0042",
"status": "late",
"sendingStage": "viewed",
"isOverdue": true,
"type": "oneTime",
"client": {
"id": "cm5client0acme",
"name": "Acme Design Co."
},
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"subject": "Brand refresh — November",
"poNumber": "PO-7781",
"issueDate": "2026-11-01",
"dueDate": "2026-11-15",
"paymentTerm": "net15",
"periodStartDate": "2026-11-01",
"periodEndDate": "2026-11-14",
"currency": "USD",
"subtotalAmount": 2115,
"discountType": "percentage",
"discountRate": 10,
"discountAmount": 211.5,
"isDiscountApplied": true,
"taxMode": "simple",
"isTaxApplied": true,
"taxes": [
{
"slot": 1,
"name": "VAT",
"rate": 5,
"amount": 84.38,
"currency": "USD"
}
],
"taxTotal": 84.38,
"totalAmount": 1987.88,
"paidAmount": 1000,
"balanceDueAmount": 987.88,
"writtenOffAmount": 0,
"writeOffNote": null,
"sentAt": "2026-11-01T10:12:44.000Z",
"paidDate": null,
"writtenOffAt": null,
"notes": "<p>Payment within 15 days by bank transfer.</p>",
"canPayOnline": true,
"paymentGateways": [
"stripe"
],
"shareUrl": "https://app.onesuite.io/invoice/cm4inv0000a1/view?token=7f3c…",
"retainer": null,
"retainerRole": null,
"estimate": null,
"recurringInvoice": null,
"createdBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"lineItems": [
{
"id": "cm3line0001design",
"position": 1,
"itemType": {
"id": "cm1itype0service",
"name": "Service"
},
"description": "Design work, 1–14 November",
"quantity": 12.5,
"unitPrice": 150,
"amount": 1875,
"currency": "USD",
"isTaxed": true,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": true,
"hasExpenses": false
},
{
"id": "cm3line0002hosting",
"position": 2,
"itemType": {
"id": "cm1itype0product",
"name": "Product"
},
"description": "Hosting, November",
"quantity": 1,
"unitPrice": 240,
"amount": 240,
"currency": "USD",
"isTaxed": false,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": false,
"hasExpenses": false
}
],
"createdAt": "2026-11-01T09:58:03.000Z",
"updatedAt": "2026-11-12T16:40:21.000Z"
}
}

Takes a sent invoice back to open (“Open · Saved”), as if it had not been sent: its sent date is cleared. Payments stay, and the client is not told.

POST /v1/invoices/:id/mark-as-unsent

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.

Rules

  • 403 when the token’s person may not edit invoices.
  • 404 when the invoice is not in this business.
  • 409 when the invoice has not been sent, is a draft, or is written off (re-open it first).
  • 409 when the invoice changed at the same moment; read it again and retry.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/mark-as-unsent" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'

Example response — status 200

{
"data": {
"id": "cm4inv0000a1",
"number": "INV-0042",
"status": "open",
"sendingStage": "saved",
"isOverdue": false,
"type": "oneTime",
"client": {
"id": "cm5client0acme",
"name": "Acme Design Co."
},
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"subject": "Brand refresh — November",
"poNumber": "PO-7781",
"issueDate": "2026-11-01",
"dueDate": "2026-11-15",
"paymentTerm": "net15",
"periodStartDate": "2026-11-01",
"periodEndDate": "2026-11-14",
"currency": "USD",
"subtotalAmount": 2115,
"discountType": "percentage",
"discountRate": 10,
"discountAmount": 211.5,
"isDiscountApplied": true,
"taxMode": "simple",
"isTaxApplied": true,
"taxes": [
{
"slot": 1,
"name": "VAT",
"rate": 5,
"amount": 84.38,
"currency": "USD"
}
],
"taxTotal": 84.38,
"totalAmount": 1987.88,
"paidAmount": 1000,
"balanceDueAmount": 987.88,
"writtenOffAmount": 0,
"writeOffNote": null,
"sentAt": null,
"paidDate": null,
"writtenOffAt": null,
"notes": "<p>Payment within 15 days by bank transfer.</p>",
"canPayOnline": true,
"paymentGateways": [
"stripe"
],
"shareUrl": "https://app.onesuite.io/invoice/cm4inv0000a1/view?token=7f3c…",
"retainer": null,
"retainerRole": null,
"estimate": null,
"recurringInvoice": null,
"createdBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"lineItems": [
{
"id": "cm3line0001design",
"position": 1,
"itemType": {
"id": "cm1itype0service",
"name": "Service"
},
"description": "Design work, 1–14 November",
"quantity": 12.5,
"unitPrice": 150,
"amount": 1875,
"currency": "USD",
"isTaxed": true,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": true,
"hasExpenses": false
},
{
"id": "cm3line0002hosting",
"position": 2,
"itemType": {
"id": "cm1itype0product",
"name": "Product"
},
"description": "Hosting, November",
"quantity": 1,
"unitPrice": 240,
"amount": 240,
"currency": "USD",
"isTaxed": false,
"isTaxed2": false,
"project": {
"id": "cm2proj0brand",
"name": "Brand refresh",
"code": "BR-24"
},
"hasTimeEntries": false,
"hasExpenses": false
}
],
"createdAt": "2026-11-01T09:58:03.000Z",
"updatedAt": "2026-11-12T16:40:21.000Z"
}
}

Returns the payments recorded on the invoice, latest payment date first, paged.

GET /v1/invoices/:id/payments

Parameters

Parameter In Type Required Description
id path string Yes The invoice’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 payments recorded or changed at or after this moment. Records deleted since then are not reported.

Rules

  • 403 when the token’s person may not view invoices.
  • 404 when the invoice is not in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/payments" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cm7pay0001",
"amount": 1000,
"currency": "USD",
"paidDate": "2026-11-12",
"source": "manual",
"paymentMethod": "bankTransfer",
"reference": "TRF-55120",
"notes": "First instalment",
"receiptNumber": "R-0017",
"receiptSentAt": null,
"recordedBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"createdAt": "2026-11-12T16:40:20.000Z",
"updatedAt": "2026-11-12T16:40:20.000Z"
}
],
"totalCount": 1,
"page": 1,
"limit": 20
}

Records money received against the invoice. When the payments cover the total, the invoice becomes paid; paying more than is owed is accepted and leaves a negative balance. If the business has “send a thank-you automatically” switched on and this payment settles the invoice, the client is sent a thank-you.

POST /v1/invoices/:id/payments

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.
amount body decimal Yes Amount received, above zero.
paidDate body date No The day it arrived. Defaults to today in the business’s time zone.
paymentMethod body string No bankTransfer, cheque, cash, card or other.
reference body string No Cheque or transfer number, up to 255 characters.
notes body string No Up to 2,000 characters.
sendReceipt body boolean No Email the client a receipt for this payment. Default false.

Rules

  • 403 when the token’s person may not edit invoices.
  • 404 when the invoice is not in this business.
  • 400 when the amount is not above zero, the date is not a date, or a text is too long.
  • 409 when the invoice is a draft (save it first), written off (re-open it first), or nothing is owed on it.
  • 409 while an automatic subscription charge on the invoice is still settling.
  • The payment is also sent to QuickBooks or Xero when the business syncs them.
  • A failed thank-you or receipt email never undoes the payment.
  • Answers 201 with the payment.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/payments" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"amount":987.88,"paidDate":"2026-11-20","paymentMethod":"bankTransfer","reference":"TRF-55311"}'

Example response — status 201

{
"data": {
"id": "cm7pay0002",
"amount": 987.88,
"currency": "USD",
"paidDate": "2026-11-20",
"source": "manual",
"paymentMethod": "bankTransfer",
"reference": "TRF-55311",
"notes": null,
"receiptNumber": "R-0018",
"receiptSentAt": null,
"recordedBy": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"createdAt": "2026-11-20T11:20:05.000Z",
"updatedAt": "2026-11-20T11:20:05.000Z"
}
}

Removes a payment from the invoice. The invoice’s paid amount, balance and status are worked out again; a paid invoice owes again. Removing a payment taken online does not refund it.

DELETE /v1/invoices/:id/payments/:paymentId

Parameters

Parameter In Type Required Description
id path string Yes The invoice’s id.
paymentId path string Yes The payment’s id.

Rules

  • 403 when the token’s person may not edit invoices.
  • 404 when the invoice is not in this business or the payment is not on it.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/payments/cm7pay0001" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Payment removed"
}

Returns everything that happened to the invoice (created, edited, sent, payments, write-offs), latest first, paged.

GET /v1/invoices/:id/history

Parameters

Parameter In Type Required Description
id path string Yes The invoice’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

  • 403 when the token’s person may not view invoices.
  • 404 when the invoice is not in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/invoices/cm4inv0000a1/history?limit=1" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cm8log0004",
"event": "payment recorded",
"member": {
"id": "cm6member0lee",
"name": "Jordan Lee"
},
"occurredAt": "2026-11-12T16:40:20.000Z"
}
],
"totalCount": 9,
"page": 1,
"limit": 1
}