Skip to main content

Look up work units by their external order-line reference

GET 

/work-units

Returns every WorkUnit ever enqueued for the given reference — the GetWorkUnitsByReference use case. reference is the external reference threaded through POST /paths/{pathId}/work-units (typically an order line), NOT this service's internal client-supplied workUnitId. A reference can plausibly correspond to more than one WorkUnit across retries/history (e.g. re-enqueued after an abandoned attempt) — the response is always an array, even when a caller expects at most one live unit, and is empty (not 404) when the reference has never been seen. This is the cross-service lookup a console screen uses to answer "what work did this service release for order X, line N".

Request​

Responses​

One keyset page (ordered by cpt, id) of the work units found for this reference: {items, nextCursor}; items is empty (not 404) when nothing matches and nextCursor is absent on the last page.