Create Lab Inventory
The "create inventory" API facilitates the addition of stock to specific laboratory facilities.
Lab Inventory
curl --location 'https://demo.hng.one/developerapi/lab/create-inventory' \
--header 'Authorization: Bearer <<JWT_TOKEN>>' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"clientId":"qwer-iuhjkjhv-oijhgfcv"
"facilityInfo": {
"facilityId": "1234",
"facilityName": "Delhi MMU"
},
"indentInfo": {
"indentId": "IND1234",
"indentName": "INDENT001"
},
"itemInfo": [{
"itemUID": "1",
"itemName": "lancet",
"usageName": "lancet",
"description": "lancet",
"itemType": "CONSUMABLE",
"units": "NO",
"batchNo": "BAT0001",
"batchExpiryDate": 1744780979,
"quantity": 100
},{
"itemUID": "2",
"itemName": "SYRINGE 10 ML-1x50no's -HMS -nan - (50.0 Nos)",
"usageName": "SYRINGE",
"description": "SYRINGE",
"itemType": "CONSUMABLE",
"units": "NO",
"batchNo": "BAT0002",
"batchExpiryDate": 1744780979,
"quantity": 150
},{
"itemUID": "3",
"itemName": "SYRINGE 3 ML-1x50no's -HMS -nan - (50.0 Nos)",
"usageName": "SYRINGE",
"description": "SYRINGE",
"itemType": "CONSUMABLE",
"units": "NO",
"batchNo": "BAT0002",
"batchExpiryDate": 1744780979,
"quantity": 150
},{
"itemUID": "4",
"itemName": "uric acid",
"usageName": "SYRINGE",
"description": "SYRINGE",
"itemType": "REAGENT",
"units": "ML",
"batchNo": "BAT0003",
"batchExpiryDate": 1744780979,
"quantity": 500
}]
}
]'
API Fields Description
Indent Info
| Field | Description | Type | Required |
|---|---|---|---|
| indentName | name of the Indent | String | Yes |
| indentId | unique ID of the Indent | String | Yes |
Facility Info
| Field | Description | Type | Required |
|---|---|---|---|
| facilityId | unique ID of the Facility | String | Yes |
| facilityName | name of the Facility | String | Yes |
Item Info
| Field | Description | Type | Required |
|---|---|---|---|
| itemUID | unique ID of the Item | String | Yes |
| itemName | name of the Item | String | Yes |
| usageName | usage Name of the Item | String | Yes |
| description | description is the common name for different item names | String | Yes |
| itemType | REAGENT / CONSUMABLE | String | Yes |
| units | NO / ML | String | Yes |
| batchNo | batchno of the Item | String | Yes |
| batchExpiryDate | expiry date in Epoch Format in seconds | Number | Yes |
| quantity | no. of quantity adding to the stock | Number | Yes |