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
- 200
- 400
- 500
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.
The reference query parameter was missing or empty, limit is out of range (invalid-limit), cursor does not decode (invalid-cursor), or an undeclared query parameter was sent (unknown-query-parameter).
An unexpected server-side failure (e.g. a repository or event-publisher error).