receiveSerial
const url = 'https://app.dev.buildtrace.eu/api/serials';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"partRevisionId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","serialNumber":"example","locationId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","supplierId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.dev.buildtrace.eu/api/serials \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "partRevisionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "serialNumber": "example", "locationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "supplierId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Required scope: inventory:write.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "partRevisionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "serialNumber": "example", "locationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "supplierId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”Created
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"}Bad request
object
Example generated
{ "error": "example"}Unauthorized
Not found
The serial number is already used by another unit, or the organization’s serials limit is reached
object
Example generated
{ "error": "example"}