Skip to content

GET /batch/{batch_key}/serials

Get Batch Serials

GET
/batch/{batch_key}/serials

Return serials associated with a production batch.

Queries GET_BATCH_SERIALS in the Serial collection for all serials linked
to batch_key. Each result has active=True set before returning so the
frontend can treat them as currently in-use serials.

Emits: (direct query — no event class)
Required scope: traceability:batch-execution-record:read

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Parameters

Path Parameters

batch_key*
Type
string
Required

Responses

Successful Response

application/json
JSON
[
  
{
  
  
"serial_key": "SN-LR-001234",
  
  
"serial_code": "SN-LR-001234",
  
  
"counter_key": "counter/sn-lr",
  
  
"active": false
  
}
]

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.