Index | Conventions

api/v1/list/invoice/stock

Path: api/v1/list/invoice/stock

This endpoint supports the following methods:
GET POST

Filtering

This endpoint requires filter[inv.id][-in]=<comma-separated ids> to scope the request to a caller-supplied set of parent ids — there is no unscoped pull. GET accepts a smaller batch (subject to URL length limits); use POST with the same filter in the request body for a larger batch.

Ids must be real (positive) invoice numbers; a non-positive id returns 400.

This endpoint does not support lastModified/incremental sync directly, and there is no parent list to sync it via the way job/stock and po/stock do: a job-part line change touches its job's own lastModified, not the invoice header, and a job id isn't usable as this endpoint's own filter[inv.id]. To detect changes, track lastModified on api/v1/list/jobs for the jobNo values a previous pull already returned, or treat re-pulling the invoice ids you care about as the sync model.

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.

This endpoint paginates by invoice, not by row: a page contains every row of each invoice it includes, so maxrows bounds the number of invoices on a page and an individual page can contain more rows than maxrows - it never splits a single invoice across two pages. A consumer can process a page as soon as it arrives, knowing every invoice in it is complete, with no need to buffer across page boundaries.

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
invNo
jobNo
lineId
stockNo
stockCode
stockDesc
unit
quantity
qtySupplied
qtyOutstanding
backOrderQty
qtyPicked
unitPriceTF
unitPriceTP
discount
total
taxCode
status
hideOnInvoice
configId
isLabour
stockLineGroup
lastModified

Example GET

Path: api/v1/list/invoice/stock?filter[inv.id][-in]=1001,1002&maxrows=100

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 two items are shown here; a real page can contain more than maxrows items, since it always holds every row of each invoice it includes (see Response Envelope above). See Reading large lists at scale for the cursor paging and highWaterMark conventions shared by every list/* endpoint.

Side-loading related resources with the include query parameter is not supported on list endpoints: an include parameter is ignored here and no included section is returned.

Response:

{
  "success": true,
  "data": [
    {
      "invNo": 1001,
      "jobNo": 1001,
      "lineId": 1001,
      "stockNo": 1001,
      "stockCode": "Example Stock Code",
      "stockDesc": "Example Stock Desc",
      "unit": "Example Unit",
      "quantity": 5,
      "qtySupplied": 5,
      "qtyOutstanding": 5,
      "backOrderQty": 5,
      "qtyPicked": 5,
      "unitPriceTF": 123.45,
      "unitPriceTP": 123.45,
      "discount": 5,
      "total": 123.45,
      "taxCode": "Example Tax Code",
      "status": "Example Status",
      "hideOnInvoice": true,
      "configId": 1001,
      "isLabour": true,
      "stockLineGroup": "S",
      "lastModified": "2026-08-13T09:00:00Z"
    },
    {
      "invNo": 1002,
      "jobNo": 1002,
      "lineId": 1002,
      "stockNo": 1002,
      "stockCode": "Example Stock Code",
      "stockDesc": "Example Stock Desc",
      "unit": "Example Unit",
      "quantity": 5,
      "qtySupplied": 5,
      "qtyOutstanding": 5,
      "backOrderQty": 5,
      "qtyPicked": 5,
      "unitPriceTF": 123.45,
      "unitPriceTP": 123.45,
      "discount": 5,
      "total": 123.45,
      "taxCode": "Example Tax Code",
      "status": "Example Status",
      "hideOnInvoice": true,
      "configId": 1002,
      "isLabour": true,
      "stockLineGroup": "S",
      "lastModified": "2026-08-13T09:00:00Z"
    }
  ],
  "nextCursor": "eyJrZXkiOjEwMDF9",
  "highWaterMark": "2026-08-13T09:00:00Z",
  "maxrows": 100
}