List the stock movements of a trace

🚧

Beta — subject to change. This endpoint is publicly available, but its request/response shape may evolve before General Availability as we incorporate early feedback.

Returns one page of the completed stock movements behind a trace, oldest first:
the timeline of a recall, or the full history of one batch or serial number. It reads any number of movements,
page by page; the X-Pagination header gives the total.

Give the same batch_ids, serial_number_ids, max_depth and trace_by as to GET /traceability/trace:
the movements belong to that trace, and node_id on each one is the node it belongs to there.

  • scope=trace (default) lists the chain of custody: every movement on a link the trace draws, and every stock
    transfer of the batches and serial numbers it reaches. A batch reached upstream also went into orders outside the
    chain; those are left out.
  • scope=all lists every completed movement of the batches and serial numbers the trace starts from, also on
    orders the trace does not follow. With node_id, it lists every movement of that one node instead.

Movements at the same moment follow the flow of stock: received, added, transferred, used, produced, removed,
shipped. A stock transfer is two movements, out of one location and into another. Quantities are decimal strings in
the unit of measure of their variant: positive brought stock in, negative took it out.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
batch_ids
array of integers
length ≤ 100

Batches the trace starts from. Give batch_ids, serial_number_ids or both: at least one id and at most 100 together.

batch_ids
serial_number_ids
array of integers
length ≤ 100

Serial numbers the trace starts from.

serial_number_ids
integer
0 to 10
Defaults to 10

How many orders deep the trace follows in each direction, as in GET /traceability/trace.

string
enum
Defaults to unit

How the trace follows manufacturing orders, as in GET /traceability/trace.

Allowed:
string
enum
Defaults to trace

trace: the movements on the links the trace draws, and every stock transfer. all: every completed movement of the starts, or of the node given in node_id.

Allowed:
string

With scope=all: list the movements of this node of the trace only. A node_id from the trace.

string

Used for pagination (default is 50)

string

Used for pagination (default is 1)

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Choose an example:
application/json