Index | Conventions

api/v1/list/pos

Path: api/v1/list/pos

This endpoint supports the following methods:
GET

Filtering

This endpoint accepts the same filter[...] query parameters as api/v1/pos — see that page's Filtering section for the supported fields, types and operators.

filter[pOId]: An exact point lookup for a single purchase order by id (note the capital O — filter names are case-sensitive). Returns that PO together with its full backorder chain, always excluding cancelled records. It is exclusive: combining it with any other filter, or supplying it with an operator (eg [-gte]), both return 400.

An unfiltered pull excludes cancelled purchase orders by default, across every PO type (there is no default type restriction).

Includes

Use the include query parameter to embed related child data in this page, avoiding a separate call per record - eg ?include=stock. Each requested name adds a nested array to every row, present (possibly empty) whenever requested; a row's included children are never bounded by maxrows - only the top-level page is. Supported values:

An include name that is not in this list returns 400 Bad Request - it is not silently ignored.

Response Envelope

These fields are shared by every api/v1/list/* endpoint; see also Reading large lists at scale. The per-record fields returned inside data are listed separately below.

FieldDescription
successWhether the request succeeded. Always true in this envelope - a failed request returns an error response instead of this shape.
dataThe matching records for this page. Each item is a flat JSON object containing whichever of the endpoint's fields apply to that record; fields that are empty or not relevant to that record are omitted, so do not assume every field is present on every row.
nextCursorAn opaque token for fetching the next page, or null once you have the last page. Pass it back unchanged as the cursor query parameter to continue the same run in the same order, with no gaps or duplicates; do not construct or inspect its contents.
highWaterMarkA server-captured cutoff timestamp, or null. On endpoints that support incremental sync, re-supply it as the lower bound of your next pull's lastModified filter to fetch only what changed since this run. On endpoints that do not support incremental sync, treat it as unused rather than assuming null means "not supported".
maxrowsThe number of rows requested for this page, after clamping to the endpoint's cap (1000) and defaulting (100) when omitted or non-positive - the value actually applied, not necessarily the value you sent.

Response Fields

Each item in the data array is a flat JSON object (not a JSON:API resource) containing whichever of the fields below apply to that record; fields that are empty or not relevant to that record are omitted, so do not assume every field is present on every row.

Field
poId
status
type
typeId
poDesc
bidReference
ourRef
vendorInvNo
priority
mode
poDate
dateDue
receiveDate
etd
lastModified
total
tax
freight
freightTax
freightMethod
stockTotal
exchRate
hcTotal
vendorCode
shipCode
fromCode
nameCode
currencyCode
branchCode
subBranchCode
gLDeptCode
companyName
projectCode
masterProjectCode
sourceName
origPoNo
prevPoNo
custRetNo

Example GET

Path: api/v1/list/pos?maxrows=100&include=stock

This example shows the maximum set of fields the endpoint can return, all populated with placeholder values — it is generated documentation, not real data or a real cursor, and the placeholder values do not indicate a field's actual data type. A real response only contains the data that applies to that record, so fields that are empty or not relevant are omitted — do not assume every field shown here will be present in every response.

This is a list. To keep the example readable, only one item is shown here; a real page can contain up to maxrows items. See Reading large lists at scale for the cursor paging and highWaterMark conventions shared by every list/* endpoint.

This example also requests every supported include, so each row shows its nested arrays - a real request can ask for any subset (or none) of them. See the Includes section above for what each name returns.

Response:

{
  "success": true,
  "data": [
    {
      "poId": 1001,
      "status": "Example Status",
      "type": "Example Type",
      "typeId": 1001,
      "poDesc": "Example Po Desc",
      "bidReference": "Example Bid Reference",
      "ourRef": "Example Our Ref",
      "vendorInvNo": 1001,
      "priority": "Example Priority",
      "mode": "Example Mode",
      "poDate": "2026-08-13T09:00:00Z",
      "dateDue": "2026-08-13T09:00:00Z",
      "receiveDate": "2026-08-13T09:00:00Z",
      "etd": "2026-08-13T09:00:00Z",
      "lastModified": "2026-08-13T09:00:00Z",
      "total": 123.45,
      "tax": 123.45,
      "freight": 123.45,
      "freightTax": 123.45,
      "freightMethod": "Example Freight Method",
      "stockTotal": 123.45,
      "exchRate": 1.523,
      "hcTotal": 123.45,
      "vendorCode": "Example Vendor Code",
      "shipCode": "Example Ship Code",
      "fromCode": "Example From Code",
      "nameCode": "Example Name Code",
      "currencyCode": "Example Currency Code",
      "branchCode": "Example Branch Code",
      "subBranchCode": "Example Sub Branch Code",
      "gLDeptCode": "Example G L Dept Code",
      "companyName": "Example Company Name",
      "projectCode": "Example Project Code",
      "masterProjectCode": "Example Master Project Code",
      "sourceName": "Example Source Name",
      "origPoNo": 1001,
      "prevPoNo": 1001,
      "custRetNo": 1001,
      "stock": [
        {
          "poId": 1001,
          "lineId": 1001,
          "stockNo": 1001,
          "stockCode": "Example Stock Code",
          "stockDesc": "Example Stock Desc",
          "unit": "Example Unit",
          "quantity": 5,
          "qtyReceived": 5,
          "qtyOutstanding": 5,
          "unitPriceTF": 123.45,
          "unitPriceTP": 123.45,
          "discount": 5,
          "total": 123.45,
          "taxCode": "Example Tax Code",
          "configId": 1001,
          "stockLineGroup": "S",
          "lastModified": "2026-08-13T09:00:00Z"
        }
      ]
    }
  ],
  "nextCursor": "eyJrZXkiOjEwMDF9",
  "highWaterMark": "2026-08-13T09:00:00Z",
  "maxrows": 100
}