Submit a stock count
Admin or branch manager. Applies the counts as stock adjustments on the caller’s branch. Empty items get 400, a surplus lands on the newest batch, and a shortfall drains the oldest.
POST
/api/v1/stockcount/submitAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Request body
requiredapplication/jsonitemsobject[]requiredShow propertiesHide properties
Array of
objectmedicine_idstringrequiredcounted_quantitynumber | stringrequirednotesstringResponses
200
The adjustments that were applied
statusstringrequiredadjustments_madeintegerrequiredmin -9007199254740991 · max 9007199254740991
itemsobject[]requiredShow propertiesHide properties
Array of
objectmedicine_idstringrequireddb_quantitynumberrequiredcounted_quantityintegerrequiredmin -9007199254740991 · max 9007199254740991
deltaintegerrequiredmin -9007199254740991 · max 9007199254740991
400
No items submitted
detailstringrequired401
Not authenticated
detailstringrequired403
Access forbidden for the caller's role
detailstringrequired