List units
const url = 'https://app.buildtrace.eu/api/serials?limit=50&offset=0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.buildtrace.eu/api/serials?limit=50&offset=0' \ --header 'Authorization: Bearer <token>'Required scope: inventory:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Substring match on serial number
Responses
Section titled “Responses”OK
object
Code of the serial’s part (read-only; populated by build-order unit reads).
Name of the serial’s part (read-only; populated by build-order unit reads).
Label of the serial’s part revision (read-only; populated by build-order unit reads).
The unit’s final-test outcome (read-only; populated by a build order’s units list): its latest FINAL inspection (the one recorded when it was built, or a retest since, which may be CONDITIONAL), else NOT_TESTED when it was built with no final test. Absent when unknown. The as-built record keeps the result at build time.
Derived ECO status (read-only; populated by list reads). NEEDS_WORK when an ECO targets this serial with no retrofit recorded yet; APPLIED when it has ECO history and nothing outstanding; NONE when no ECO has ever touched it.
Example
[ { "finalTestResult": "PASS", "ecoState": "NEEDS_WORK" }]Unauthorized