# Changelog

Every change to the Omono API, newest first. Breaking and non-breaking are
defined by the [compatibility policy](/docs/compatibility). Each section has
the date, in UTC, that its changes were first released, and the changes
under Unreleased haven't been released yet. A change can reach the host you
use after its date, and the changelog on that host lists it once it has.

## 2026-12-03

- **Search supplier part numbers by one character.**
  [`GET /stock-items`](/docs#tag/stock-items/GET/stock-items) takes a
  `supplierPartNo` of 1 to 100 characters. Before, a text of one character
  failed with a `422` error. The text still matches the start of a word, so
  `supplierPartNo=-` finds every stock item that a supplier sells under a
  part number with a word that starts with `-`. `search` still needs 2
  characters.

## 2026-12-02

- **Read a stock item's suppliers.**
  [`GET /stock-items`](/docs#tag/stock-items/GET/stock-items) and
  [`GET /stock-items/{id}`](/docs#tag/stock-items/GET/stock-items/{id})
  take `include=suppliers`, and
  [`GET /stock-items/{id}/suppliers`](/docs#tag/stock-items/GET/stock-items/{id}/suppliers)
  lists them. Each supplier has its `supplierId`, part number, lead time
  in days, price, the `currencyId` of that price, which is the supplier's
  own currency, and whether it's the preferred supplier. Your API key also
  needs the `purchasing:read` scope, or the request fails with a `403`
  error and the code `insufficient-scope`. Without `include=suppliers`, a
  stock item is as before.

- **Find stock items by supplier or supplier part number.**
  [`GET /stock-items`](/docs#tag/stock-items/GET/stock-items) takes
  `supplierId`, the stock items that these suppliers supply, and
  `supplierPartNo`, which searches your suppliers' part numbers as the
  Supplier Part No filter on the Stock screen in Omono does. A
  `supplierPartNo` search pages with `cursor` in part number order, as
  `search` does, and goes with `search` and the same filters. With
  `supplierId`, the part number must be that supplier's. Both need the
  `purchasing:read` scope. [Reading data](/docs/reading#search) explains
  them.

- **Add, change and remove a stock item's suppliers.**
  [`POST /stock-items/{id}/suppliers`](/docs#tag/stock-items/POST/stock-items/{id}/suppliers),
  [`PATCH /stock-items/{id}/suppliers/{supplierId}`](/docs#tag/stock-items/PATCH/stock-items/{id}/suppliers/{supplierId})
  and
  [`DELETE /stock-items/{id}/suppliers/{supplierId}`](/docs#tag/stock-items/DELETE/stock-items/{id}/suppliers/{supplierId})
  change the suppliers of a normal or never-diminishing stock item, as the
  Suppliers window does in Omono. Making one supplier preferred clears the
  others in the same change. Adding a company that's already a supplier of
  the item fails with a `409` error and the new code `duplicate-supplier`.
  Each change moves the stock item's `updated` time and `ETag`. They need
  the `stock:write` and `purchasing:write` scopes.

- **Find the customers that have a price list.**
  [`GET /companies`](/docs#tag/companies/GET/companies) takes
  `hasPriceList`. Send `true` for only the companies with at least one
  price on their price list, at any effective date, or `false` for only
  those with none. These are the prices that
  [`GET /companies/{id}/price-list`](/docs#tag/customer-prices/GET/companies/{id}/price-list)
  returns with `effectiveDate=all`. Your API key also needs the
  `pricing:read` scope, or the request fails with a `403` error and the
  code `insufficient-scope`. You can't send it with `search`.

- **A stock item error lists every missing field.** When you create a
  stock item with
  [`POST /stock-items`](/docs#tag/stock-items/POST/stock-items) and leave
  out more than one field that its `kind` needs, the `422` error with the
  code `missing-required-field` now lists every missing field in
  `errors`. Before, it listed only the first. A missing or unknown `kind`
  fails as before.

- **Search stock items.**
  [`GET /stock-items`](/docs#tag/stock-items/GET/stock-items) takes
  `search`, which finds stock items by part of their part number or
  title, as the Filter box on the Stock screen in Omono does: each word of
  your text matches the start of a word. The matches come in part number
  order, and you page through them with `cursor`, as through the list, so
  you can read every match. You can combine it with `archived`, `canSell`,
  `canBuy`, `insufficientStock`, `kind` and `warehouseId`.
  [Reading data](/docs/reading#search) explains it.

- **Filter stock items that are short.**
  [`GET /stock-items`](/docs#tag/stock-items/GET/stock-items) takes
  `insufficientStock`. Send `true` for only the stock items whose
  `insufficientStock` is `true`, or `false` for only those whose
  `insufficientStock` is `false`. You can send it with `search` too.

- **Look up several part numbers in one request.** The `partNo` filter on
  [`GET /stock-items`](/docs#tag/stock-items/GET/stock-items) can now be
  repeated, as in `partNo=ABC-1&partNo=ABC-2`, to match up to 100 part
  numbers. A comma is still part of a part number, so `partNo=A,B` finds
  the one part number `A,B`, as before. A request with one `partNo`
  answers as before.

- **Number filters refuse the prefix Omono shows.** An `orderNo` on
  [`GET /sales-orders`](/docs#tag/sales-orders/GET/sales-orders) that
  starts with "SO-", a `quoteNo` on
  [`GET /quotes`](/docs#tag/quotes/GET/quotes) that starts with "SQ-",
  and a `purchaseOrderNo` on
  [`GET /purchase-orders`](/docs#tag/purchase-orders/GET/purchase-orders)
  that starts with "PO-", in any case, now fail with a `422` error and the
  code `validation-failed` on that field. Before, such a request answered
  `200` with an empty list, which read as "no such order". Send the number
  without the prefix, such as `1042` for sales order SO-1042.

- **No margin without a cost.** A quote or sales order line item whose
  `lastCost` is 0 or `null` now has a `margin` of `null`, wherever the line
  item appears, and an invoice whose `costOfGoodsSold` is 0 or `null` has a
  `grossMargin` of `null`. A cost of 0 means no cost is known, and a
  margin worked out against no cost means nothing: before, some of these
  line items read `100` or `0`. The costs themselves read as before, so a
  `lastCost` of 0 still reads 0.
  [Reading data](/docs/reading#costs) explains it.

- **`invoiceNo` refuses the "INV-" prefix.** On
  [`GET /invoices`](/docs#tag/dispatches/GET/invoices), an `invoiceNo` that
  starts with "INV-", in any case, now fails with a `422` error and the
  code `validation-failed` on the field `invoiceNo`, in a comma list or a
  repeated parameter too. Before, it matched nothing and returned an
  empty page. Send the number without the prefix, such as `20417` for
  invoice INV-20417.

- **`created` on customer prices.** Each price that
  [`GET /companies/{id}/price-list`](/docs#tag/customer-prices/GET/companies/{id}/price-list)
  returns now has `created`, the time the price was added to the price
  list. The `created_gte` and `created_lte` filters work on it.

- **Clearer docs for four operations.** The behaviour hasn't changed; the
  reference now says it. [`GET /dashboard`](/docs#tag/dashboard/GET/dashboard)
  counts Draft orders, counts each order on the day it was created, and
  gives every amount net of tax.
  [`GET /companies/{id}/price`](/docs#tag/customer-prices/GET/companies/{id}/price)
  returns a `price` of 0 with `source` `stock-sell-price` when the stock
  item has no sell price or can't be sold, and always uses the price list
  in effect today. A `search` on
  [`GET /companies`](/docs#tag/companies/GET/companies) and
  [`GET /contacts`](/docs#tag/contacts/GET/contacts) has no cursor: when
  `hasMore` is `true`, send a longer text or a larger `limit`. And
  `effectiveDate` on
  [`GET /companies/{id}/price-list`](/docs#tag/customer-prices/GET/companies/{id}/price-list)
  must be one of the `effectiveDates` in the response.

- **Search companies and contacts.**
  [`GET /companies`](/docs#tag/companies/GET/companies) and
  [`GET /contacts`](/docs#tag/contacts/GET/contacts) take `search`, which
  finds records by part of their name, as the search screens in Omono do:
  each word matches the start of a word, so `acm` finds Acme Engineering
  Ltd. On companies the text is a phrase, its words next to each other and
  in the same order, and it also matches the account number and postcode.
  On contacts, a text with `@` matches any part of the email address, so
  `@acme-engineering.example` finds everyone at that domain, and counts as
  3 requests against your organisation's limit. The best matches come
  first, with no cursor. If the search isn't available or can't finish in
  time, the request fails with a `503` error and a `Retry-After` header.
  [Reading data](/docs/reading#search) explains it.

- **List all sales order lines.**
  [`GET /sales-order-lines`](/docs#tag/sales-orders/GET/sales-order-lines)
  returns the line items on all your sales orders, one row each, with the
  `orderNo`, `companyId`, `orderStatus`, `orderCreated`, `currencyId` and
  `exchangeRate` of the order each one is on. A line item's prices and
  costs are in its order's currency, and Draft and Cancelled orders are
  included. It takes the `salesOrderId` and `stockItemId` filters,
  the created range, the standard sorts and `updated_since`, and it needs
  the `sales:read` or `sales:write` scope. `lastCost` and `margin` are
  included when your key also has `stock:read`. Use it for reports: a line
  item that staff remove isn't in the list any more, so keep your orders
  in step with `GET /sales-orders`.

- **List all deliveries.**
  [`GET /deliveries`](/docs#tag/deliveries/GET/deliveries) returns every
  delivery across your purchase orders, each with `purchaseOrderId`,
  `purchaseOrderNo`, `companyId`, the supplier, and the purchase order's
  `currencyId` and `exchangeRate`. A delivery has no tax. It takes the
  `purchaseOrderId`, `companyId`, `status`, `invoiced` and `invoiceNo`
  filters, the standard sorts and `updated_since`. Your supplier invoices
  are `GET /deliveries?invoiced=true`. It needs the `purchasing:read` or
  `purchasing:write` scope. You can now poll deliveries directly, as
  [Keeping in sync](/docs/syncing#incremental-sync) explains.

- **Users' email addresses.** Each user that
  [`GET /users`](/docs#tag/organisation/GET/users) returns now has
  `email`, the address on their Omono account, or `null` for your
  organisation's API user. The new `email` filter finds the user with an
  address, ignoring capital letters, for example to match an email you
  received to the member of staff who sent it. Every key with the
  `reference:read` scope can read these addresses.

- **Find dispatches by number or tracking number.**
  [`GET /dispatches`](/docs#tag/dispatches/GET/dispatches) takes
  `dispatchNo` and `trackingNo` filters, each with up to 100 values. A
  dispatch's number counts within its sales order, so `dispatchNo` needs
  `salesOrderId`: without it, the request fails with a `422` error. A tracking number matches the
  whole tracking number saved on the dispatch, exactly: capital letters and
  spaces inside it included.

- **25 active keys.** Your organisation can now have up to 25 active API
  keys, up from 10, so each integration and each test setup can have its
  own key. Every other rule for keys is the same. See
  [Getting started](/docs/getting-started).

- **Costs, margins, base-currency totals and the Xero sync state.** Each
  quote, sales order, purchase order, credit note, dispatch, delivery and
  invoice now has `totalValueBase`, its total in your organisation's base
  currency as Omono saved it, and `totalTaxBase` where it has a
  `totalTax`. Invoices, credit notes and deliveries have `xero`, with the
  status of their sync to Xero, Xero's ID and the time of the last sync, or
  `null` if your organisation isn't connected to Xero. For a key that also
  has the `stock:read` scope, each quote and sales order line item has
  `lastCost` and `margin`, and each invoice has `costOfGoodsSold`,
  `grossProfit`, `grossMargin`, `costOfGoodsSoldBase` and
  `grossProfitBase`. Other keys don't get these cost fields: they're left
  out, not `null`. All the new fields are read-only. See
  [Read costs, margins and base-currency totals](/docs/reading#costs).

- **Two new rate-limit headers.** Nothing changed for `RateLimit-Limit`,
  `RateLimit-Remaining` and `RateLimit-Reset`: they still describe the
  limit with the fewest requests left, and on a `429` error the limit that
  refused the request. Two headers are new, on the same responses. The
  `RateLimit-Policy` header lists every limit of the request with its size
  (`q`) and window in seconds (`w`), for example `"sustained";q=120;w=60`.
  The `RateLimit` header gives the requests left in each of those limits
  (`a`) and the seconds until it resets (`w`), for example
  `"sustained";a=30;w=22`, so you can pace a bulk read by your minute
  limit. Both use the syntax of the current draft of the IETF rate-limit
  headers work, which isn't final. When a heavy write is refused, the three
  older headers now describe the limit that refused it, as on any other
  `429` error. See [Watch your remaining allowance](/docs/limits#headers).

- **List all your contacts.**
  [`GET /contacts`](/docs#tag/contacts/GET/contacts) no longer needs
  `email` or `externalRef`: without them, it lists every contact of all
  your companies, a page at a time. It now takes `sort` (`created` or
  `updated`), `updated_since` and the new `companyId` filter, so you can
  poll your contacts for changes directly. A request without `email` or
  `externalRef` no longer fails with a `422` error. The operation is now
  called **List contacts**, and the list of one company's contacts is
  called **List a company's contacts**.

- **Find invoices by number, and their exchange rate.**
  [`GET /invoices`](/docs#tag/dispatches/GET/invoices) takes the new
  `invoiceNo` filter: up to 100 invoice numbers, without the "INV-"
  prefix. Invoices in `GET /invoices` and `GET /invoices/{id}` now have
  `exchangeRate`, the exchange rate of the invoice's sales order.

- **Change a key's scopes.** An admin can now change the scopes of an
  active key on Settings → API, with **Edit access** on the key's row. The
  key has its new scopes from its next request, and its secret, name and
  expiry date stay the same, so you don't need a new key to give an
  integration more or less access. Omono emails your admins about every
  change. If a key that reads `GET /events` gains a scope, load the
  records it can now read in full once, as
  [Keeping in sync](/docs/syncing#details) explains. The
  `insufficient-scope` error now tells you to add the scope to the key.

- **Customer prices.** The new
  [`GET /companies/{id}/price-list`](/docs#tag/customer-prices/GET/companies/{id}/price-list)
  lists a customer's prices: the price list in effect today, the one that
  takes effect on a date you name, or all of them, with the customer's
  `currencyId` and the dates its price lists take effect. The new
  [`GET /companies/{id}/price`](/docs#tag/customer-prices/GET/companies/{id}/price)
  returns the price Omono fills in on a line for a stock item and a
  quantity, from the customer's price list or the stock item's sell price,
  and says which, with the currency it's in, and the `discount` Omono
  fills in. Name the quote or sales order the line is for in `quoteId` or
  `salesOrderId`, and it also returns `linePrice`, the price converted to
  that document's currency and rounded as Omono does it, ready to send as
  the line's `price`. Both need the new `pricing:read` scope, and naming a
  quote or sales order also needs `sales:read` or `sales:write`. Learn
  more about [pricing a line](/docs/writing#pricing-a-line).

- **A new scope, `pricing:read`, for your customers' prices.** It's a new
  scope: no key you already have holds it, and no other scope includes it,
  so `sales:write` and `companies:read` don't let a key read prices. To
  give an integration your customers' prices, an admin ticks **Customer
  prices** on its key with **Edit access** on Settings → API. The
  integration keeps its key. Because a key now has one more
  scope it can hold, a key that the list of keys showed as **Everything**
  now shows its areas instead. What the key can do hasn't changed.

- **The events list for a key that can't read any events.** A key with
  only `reference:read` or `pricing:read` can't read any kind of record
  that has events. Its `GET /events` was always empty, but `latestSequence`
  and `nextSince` still moved as records were deleted. Now it always gets
  the same empty list, with `hasMore` set to `false` and `latestSequence`
  and `nextSince` set to the `since` you sent, or 0.

- **Working week, closed days and more settings.** The new
  [`GET /closed-days`](/docs#tag/organisation/GET/closed-days) lists the
  days your organisation is closed, sorted by date, with `from` and `to`
  to read a range of dates. It needs the `reference:read` scope.
  [`GET /settings`](/docs#tag/organisation/GET/settings) now also returns
  your `workingWeek`, Quote Auto-Close in `quotes.autoClose`,
  `salesOrders.duplicateCustomerOrderNoWarning` and
  `addresses.localPostalFormat`, and
  [`GET /organisation`](/docs#tag/organisation/GET/organisation) returns
  the end of your financial year in `financialYearEnd`. With Quote
  Auto-Close on, an Active quote can become Lost overnight.

- **Delete Draft quotes, sales orders, credit notes and purchase
  orders.** The new
  [`DELETE /quotes/{id}`](/docs#tag/quotes/DELETE/quotes/{id}),
  [`DELETE /sales-orders/{id}`](/docs#tag/sales-orders/DELETE/sales-orders/{id}),
  [`DELETE /credit-notes/{id}`](/docs#tag/credit-notes/DELETE/credit-notes/{id})
  and
  [`DELETE /purchase-orders/{id}`](/docs#tag/purchase-orders/DELETE/purchase-orders/{id})
  delete a Draft as Omono does: its line items, dispatches or deliveries,
  notes, files and linked tasks go with it, and the deletes appear in
  `GET /events`. Keys that have the `sales:write` scope can now delete
  Draft quotes, sales orders and credit notes, and keys that have the
  `purchasing:write` scope can now delete Draft purchase orders. Each
  `DELETE` needs `If-Match`, deletes the Draft only if it still matches that
  `ETag`, and answers `204` with no body. A document
  that isn't a Draft fails with a `409` error and the new code
  `not-a-draft`, and a Draft quote with more than one revision fails with
  the new code `quote-has-revisions`. Learn more about
  [deleting](/docs/writing#deleting).

- **Reactivate a lost quote.** The new
  [`POST /quotes/{id}/reactivate`](/docs#tag/quotes/POST/quotes/{id}/reactivate)
  makes a Lost quote Active again with no lost reason, as the
  **Reactivate** action does in Omono: it adds a note and an activity feed
  entry, and the follow-up tasks that `/mark-lost` closed stay closed. Send
  it without a body. An Active quote answers `"applied": false`; a Draft or
  Won quote fails with a `409` error and the new code `quote-not-lost`,
  and a Lost quote that has a sales order fails with `quote-locked`. Keys that have the `sales:write` scope can now reactivate quotes. To
  change the reason on a lost quote, reactivate it and mark it as lost
  again. Learn more about
  [lifecycle actions](/docs/writing#lifecycle-actions).

- **Archive and unarchive companies and stock items.**
  [`PATCH /companies/{id}`](/docs#tag/companies/PATCH/companies/{id}) and
  [`PATCH /stock-items/{id}`](/docs#tag/stock-items/PATCH/stock-items/{id})
  now take `archived`, as a contact or an address does. Keys that have the
  `companies:write` or `stock:write` scope can now archive and unarchive
  them. An archived company or stock item still refuses other changes with
  a `409` error and the code `company-archived` or `stock-item-archived`,
  unless the same request sends `archived: false`, and those errors no
  longer tell you to unarchive the record in Omono. Sending the value the
  record already has changes nothing. Learn more about
  [archiving](/docs/writing#archiving).

- **Read the dashboard figures.** The new
  [`GET /dashboard`](/docs#tag/dashboard/GET/dashboard) returns your
  organisation's sales and output for today, this month and this financial
  year, with your targets and how much of each target falls up to today,
  as the dashboard in Omono shows them. Omono works out today in your
  organisation's time zone. It needs the `sales:read` scope, and it counts
  as 5 against your organisation's per-minute rate limit. Learn more about
  [reading the dashboard figures](/docs/reading#dashboard) and the new
  recipe [Report sales against target](/docs/recipes/sales-against-target).

- **Read and add notes.** Companies, quotes, sales orders, credit notes,
  purchase orders, stock items and tasks have a notes list,
  `GET /<record>/{id}/notes`, newest first, with the user notes and the
  system notes Omono writes, and a `kind` filter (a task's notes are user
  notes only). `POST /<record>/{id}/notes` adds a plain-text note of up to
  2,000 characters and 50 lines, shown in Omono as written by
  `API · <key name>`, and one record takes about 50 notes through the API
  in 24 hours. Each one needs the record's own read or
  write scope, so a key with a write scope can now add notes. Notes can't
  be changed or deleted through the API, and a new note doesn't change its
  record's `updated` time. Notes count towards the daily limit of stored
  descriptions, which is now a limit of stored descriptions and notes.
  Learn more about [reading notes](/docs/reading#notes) and
  [adding notes](/docs/writing#notes).

- **The create-company schema states what a customer needs.** The
  request schema of [Create a company](/docs#tag/companies/POST/companies)
  now requires `accountManagerId` and `invoiceTermsDays` when `isCustomer`
  is `true`. Omono already refused a create without them. A create that
  misses one of these fields and also fails another check, such as an
  `industryId` that isn't valid, can now fail with the code
  `missing-required-field` where it failed with a different code before.
  The status is still `422`.

- **A missing-required-field error lists every missing field.** When a
  request leaves out several required fields, the `422` error with the
  code `missing-required-field` now names all of them in `errors[]`, not
  only the first. The first entry is the field that the error named before.
  Omono still checks a request in two stages, the request's shape and then
  the rules that depend on your organisation's data and settings, so a
  second error can still name fields that the rules require. Learn more in
  [Errors](/docs/errors).

- **Fixed: numbers too large to represent.** A number too large to
  represent, such as `1e400`, is now refused. In a query parameter, such
  as `limit=1e400`, the request fails with a `422` error and the code
  `validation-failed`, as any value outside the parameter's range does;
  before, `limit=1e400` returned more than 200 records. In a request body,
  the request fails with a `400` error and the code `malformed-request`.

- **Fixed: numbers in query parameters must be plain decimal numbers.** A
  number such as `limit`, `since` or `quantity` must be written as digits,
  with an optional minus sign and, where the parameter allows one, a
  decimal point and more digits. Hexadecimal, binary and octal numbers
  such as `0x10`, exponents such as `1e2`, a leading `+`, spaces and `5.0`
  for a whole number now fail with a `422` error and the code
  `validation-failed`; before, `limit=1e2` returned 100 records.

## 2026-11-30

- **Initial release of the Omono API (v1, beta).** Read and change your
  companies, contacts and addresses, quotes, sales orders and their
  dispatches, credit notes, purchase orders and their deliveries, stock
  items, tasks and documents. Read your invoices and your reference data,
  such as tax rates, currencies and workflow statuses. The release includes
  API keys with scopes (Settings → API), rate limits, idempotency keys,
  ETags, the error catalogue, the `/events` feed of deleted records, your
  own references in `externalRef`, and paperwork PDFs. Learn more in
  [Get started](/docs/getting-started).

- **Courier tracking links can include the delivery postcode.** A
  courier's `trackingUrl` can now have a `{{POSTCODE}}` placeholder as well
  as `{{TRACKINGNO}}`. The APC Overnight courier uses both, because APC's
  tracking page needs the delivery postcode to find a parcel. If you build
  tracking links from `trackingUrl` yourself, replace `{{POSTCODE}}` with
  the URL-encoded postcode of the sales order's delivery address. Learn
  more in [List all couriers](/docs#tag/purchasing-and-shipping/GET/couriers).
