Skip to main content

Add New Items

The "Add New Items" API facilitates the addition of new items to the items master for a specific project.

Add an Item

curl --location 'https://demo.hng.one/developerapi/lab/add-items' \
--header 'Authorization: Bearer <<JWT_TOKEN>>' \
--header 'Content-Type: application/json' \
--data-raw '[{
"itemUID" : "LABREA00025",
"itemName" : "blood urea - 4x50 - agappe",
"usageName" : "blood urea",
"description" : "blood urea"
"itemType" : "REAGENT",
"packSize" : "4x50",
"units" : "ml",
"price" : 693.0,
"manufacturer" : "agappe",
"subItems" : [
{
"itemName" : "blood urea r1",
"packSize" : "2x40"
},
{
"itemName" : "blood urea r2",
"packSize" : "2x10"
}
]
},
{
"itemUID" : "LABCON00105",
"itemName" : "needles 22g",
"usageName" : "needles 22g",
"description" : "needles 22g",
"itemType" : "CONSUMABLE",
"packSize" : "1X1000",
"units" : "nos",
"price" : 693.0,
"manufacturer" : "bd"
}]'

API Fields Description

Item Info

FieldDescriptionTypeRequired
itemUIDunique ID of the ItemStringYes
itemNamename of the Item and this may vary based on manufaturer, pack size etc...StringYes
usageNameusage Name of the ItemStringYes
descriptionitem descriptionStringNo
itemTypeREAGENT / CONSUMABLEStringYes
packSizeitem package detailsStringNo
unitsunits of the ItemStringYes
priceprice of the ItemNumberNo
manufacturermanfufacture name of the ItemStringYes
subItemsthis is for an item consits of multiple types of components. For example, blood urea consists of multiple types of components, such as R1 and R2.StringNo

Sub Items Info

FieldDescriptionTypeRequired
itemNamename of the Sub ItemStringYes
packSizeitem package detailsStringNo