List sales orders
Operation ID: salesOrders
Group: Accounting › Sales Orders
Open in the interactive reference
GET /accounting/sales-orders
Read-only: Reads and returns; changes nothing.
Lists sales orders. Each sales order is returned with its header fields, amounts, and customer and entity ids. For the customer record, the addresses, and the external identifiers, use GET accounting/sales-orders/:id. The products and their priced lines are the salesOrderProducts and salesOrderProductLines collections. To filter by purchase order or external identifier, use POST accounting/sales-orders/search.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Api-Version |
header | string · v1 | yes | The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version v1. |
Query surface
id— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likeorderNumber— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likeorderType— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likeapprovalStatus— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likeinvoiceStatus— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likebookDate— filter by eq, ne, gt, gte, lt, lte, in, notIn, betweenserviceStartDate— filter by eq, ne, gt, gte, lt, lte, in, notIn, betweenserviceEndDate— filter by eq, ne, gt, gte, lt, lte, in, notIn, betweencurrency— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likeisEvergreen— filter by eq, ne, gt, gte, lt, lte, in, notIn, betweensalesChannel— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likecustomerId— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likeentityId— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likelastModifiedDate— filter by eq, ne, gt, gte, lt, lte, in, notIn, between- Orderable: id, orderNumber, orderType, approvalStatus, bookDate, serviceStartDate, serviceEndDate, currency, isEvergreen, term, lastModifiedDate
- Selectable: id, orderNumber, orderType, approvalStatus, invoiceStatus, bookDate, signDate, salesEffectiveDate, serviceStartDate, serviceEndDate, currency, isEvergreen, isPayAsYouGoOnly, term, totalContract, invoicedAmount, oneTimeDiscountAmount, oneTimeDiscountAllocation, exchangeRate, functionalCurrency, functionalTotalContract, functionalInvoicedAmount, purchaseOrder, salesChannel, customerId, customerName, customerNumber, entityId, entityName, entityNumber, salesArrangement, lastModifiedDate
page[size]— Page sizepage[cursor]— Opaque continuation cursor
Response
200 Success
Under data, an array of salesOrdersRow:
| Field | Type | Required | Filter | Sort | Description |
|---|---|---|---|---|---|
id |
string | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn), Pattern (like) |
yes | The unique identifier for the sales order. |
orderNumber |
string | null | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn), Pattern (like) |
yes | The sales order number. Unique within the tenant. Example: 'SO-1042'. |
orderType |
string | null | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn), Pattern (like) |
yes | The type of the sales order. One of: "new", "upsell", "earlyRenewal", "renewal", "replacement". |
approvalStatus |
string | null | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn), Pattern (like) |
yes | The approval status of the sales order. Possible values: 'draft', 'pendingApproval', 'revise', 'approved', 'rejected'. Only an approved order is booked business: an invoice run raises invoices for approved orders only. 'draft', 'pendingApproval' and 'revise' are awaiting approval and never share a total with approved orders. One of: "draft", "pendingApproval", "revise", "approved", "rejected". |
invoiceStatus |
string | null | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn), Pattern (like) |
no | How far the order has been invoiced, derived from its invoice plan lines: 'notStarted', 'inProgress', 'complete' or 'completeModified' (every product early-renewed and credited); the OnHold values of the type do not occur on an order. It follows the billing plan, not the amounts: an order whose service has not started reads 'notStarted' even when it was invoiced in advance, a termed order reads 'complete' once every recurring, one-time and commit plan line is invoiced or settled by a credit memo, an evergreen or pay-as-you-go order reads 'complete' only once all its subscriptions are canceled and their usage periods closed, and once its service has started, an order with billableTime, billableTravelExpense or billablePassThrough lines follows only those lines: it reads 'complete' once any of their serviceEndDate has passed, 'notStarted' while any of them has yet to start, and 'inProgress' otherwise. This is NOT approvalStatus, which says where the order sits in the approval lifecycle: an approved order is usually notStarted, and a fully invoiced one is still approved. Evaluated now, not as of a date. One of: "notStarted" (Nothing invoiced yet.), "notStartedOnHold" (Nothing invoiced yet, and invoicing is on hold.), "inProgress" (Partly invoiced.), "inProgressOnHold" (Partly invoiced, and invoicing is on hold.), "complete" (Fully invoiced.), "completeModified" (Fully invoiced, and the order was modified since.). |
bookDate |
date | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn) |
yes | The date the sales order was booked. Format YYYY-MM-DD. |
signDate |
date | null | no | no | no | Date the contract was signed by customer and company (YYYY-MM-DD). One of four dates an order carries: bookDate is when it was booked into the system, signDate when it was signed, salesEffectiveDate when the contract legally takes effect, and serviceStartDate when delivery begins. A report about when business was won reads bookDate or signDate; one about when revenue or service starts reads the other two. |
salesEffectiveDate |
date | null | no | no | no | Legal effective date of the contract (YYYY-MM-DD), which can be earlier than signDate: a contract signed in May may take effect retroactively from the previous December. |
serviceStartDate |
date | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn) |
yes | The first day of the order's service period. Format YYYY-MM-DD. |
serviceEndDate |
date | null | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn) |
yes | The last day of the order's service period. Absent when isEvergreen is true. A subscription cancellation does not change it; a cancellation is read on the order's subscriptions (isCancellationEnabled, cancellationDate). Format YYYY-MM-DD. |
currency |
string | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn), Pattern (like) |
yes | The currency of the order. Format ISO 4217, for example 'USD'. |
isEvergreen |
boolean | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn) |
yes | Whether the order is evergreen, meaning at least one of its subscriptions has no end date and keeps billing until it is canceled. It stays true after that cancellation; read cancellations on the subscriptions. |
isPayAsYouGoOnly |
boolean | null | no | no | no | True when every line on the order is pay-as-you-go usage, which is why such an order has no fixed term to invoice or recognise on a schedule. |
term |
decimal | null | no | no | yes | The length of the order's term, in months. Absent when isEvergreen is true. |
totalContract |
decimal | null | no | no | no | Total contract value in the order currency (see currency): the sum of the products' totals less the order-level oneTimeDiscountAmount. Already net of that discount — subtracting it again double-counts it. It does not bound what an evergreen or pay-as-you-go-only order will bill, so on those totalContract minus invoicedAmount is not what remains. |
invoicedAmount |
decimal | null | no | no | no | Amount already invoiced against the contract value, before tax, in the order currency (see currency): the products' invoiced amounts plus the one-time discount lines (negative) of the order's invoices. totalContract minus invoicedAmount is what remains to be billed, unless plan lines were settled by a credit memo instead of invoiced, which invoiceStatus counts as done. Evaluated now, not as of a date. |
oneTimeDiscountAmount |
decimal | null | no | no | no | Lump-sum discount applied to the whole order, in the order currency (see currency). Already deducted from totalContract. |
oneTimeDiscountAllocation |
string | null | no | no | no | How the lump-sum discount is spread across the products. One of: "firstInvoice" (Taken in full on the first invoice.), "alignToInvoiceFrequency" (Spread over the invoices as they are raised.), "custom" (Spread by a custom split.). |
exchangeRate |
decimal | null | no | no | no | Rate from the order currency to the legal entity's functional currency, as stored on the order. Absent when no conversion is recorded; the functional figures then carry the order-currency amount unchanged. |
functionalCurrency |
string | null | no | no | no | The legal entity's functional currency as a 3-letter ISO 4217 code — the currency functionalTotalContract and functionalInvoicedAmount are in. The order's own amounts are in currency instead. |
functionalTotalContract |
decimal | null | no | no | no | Total contract value in the entity's functional currency (see functionalCurrency): totalContract at exchangeRate. Where no exchange rate is stored the order's own amount is carried over unchanged, so a sum across orders can mix converted and unconverted figures — check exchangeRate, or group by currency, before presenting one total across currencies. |
functionalInvoicedAmount |
decimal | null | no | no | no | Amount already invoiced, in the entity's functional currency (see functionalCurrency) — the functional twin of invoicedAmount, built the same way at each invoice's own exchange rate, with the same caution as functionalTotalContract. Because functionalTotalContract converts at the order's rate and this at each invoice's, the two do not subtract to the functional value of what remains to bill; convert totalContract minus invoicedAmount at exchangeRate instead. |
purchaseOrder |
string | null | no | no | no | The customer's own purchase-order reference as recorded on the order. Free text — not validated, not unique, absent where the customer issued none. Returned only — it can be neither filtered nor sorted on, because it names a customer-owned document. |
salesChannel |
string | null | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn), Pattern (like) |
no | How the order was sold. One of: "salesAssisted" (Sold through the sales team.), "selfServe" (Bought by the customer without a salesperson.). |
customerId |
string | null | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn), Pattern (like) |
no | The customer this order is for. |
customerName |
string | null | no | no | no | The name of the customer this order is for. See name on GET accounting/customers/:id. |
customerNumber |
string | null | no | no | no | The customer number of the customer this order is for. See customerNumber on GET accounting/customers/:id. Example: 'CUS-789012'. |
entityId |
string | null | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn), Pattern (like) |
no | The legal entity that owns the order. |
entityName |
string | null | no | no | no | The name of the legal entity that owns this sales order. See entityName on GET base/entities. |
entityNumber |
string | null | no | no | no | The number of the legal entity that owns this sales order. See entityNumber on GET base/entities. |
salesArrangement |
string | null | no | no | no | The number of the sales arrangement this order belongs to. No endpoint returns sales arrangements. |
lastModifiedDate |
date-time | no | Exact (eq, ne), Range (gt, gte, lt, lte, between), Any of (in, notIn) |
yes | The date and time the sales order last changed, in UTC. Format YYYY-MM-DDTHH:mm:ss.sssZ. Changes to product lines do not update it. |
{
"data": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"orderNumber": "<orderNumber>",
"orderType": "new",
"approvalStatus": "draft",
"invoiceStatus": "notStarted",
"bookDate": "2026-01-15",
"signDate": "2026-01-15",
"salesEffectiveDate": "2026-01-15",
"serviceStartDate": "2026-01-15",
"serviceEndDate": "2026-01-15",
"currency": "<currency>",
"isEvergreen": true,
"isPayAsYouGoOnly": true,
"term": "19.99",
"totalContract": "19.99",
"invoicedAmount": "19.99",
"oneTimeDiscountAmount": "19.99",
"oneTimeDiscountAllocation": "firstInvoice",
"exchangeRate": "19.99",
"functionalCurrency": "<functionalCurrency>",
"functionalTotalContract": "19.99",
"functionalInvoicedAmount": "19.99",
"purchaseOrder": "<purchaseOrder>",
"salesChannel": "salesAssisted",
"customerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"customerName": "<customerName>",
"customerNumber": "<customerNumber>",
"entityId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"entityName": "<entityName>",
"entityNumber": "<entityNumber>",
"salesArrangement": "<salesArrangement>",
"lastModifiedDate": "2026-01-15T09:30:00.000Z"
}
],
"pagination": {
"hasMore": true,
"nextCursor": "<nextCursor>"
}
}
Statuses
400— Invalid request or business failure401— The request carries no valid access token.403— Not authorized404— Not found429— Too many requests from this client address. The response has no body and noRetry-Afterheader.500— Internal server error