Create Pharmacy Inventory
The "create inventory" API facilitates the addition of stock to specific Pharmacy facilities.
Pharmacy Inventory
curl --location 'https://demo.hng.one/developerapi/pharmacy/create-inventory' \
--header 'Authorization: Bearer <<JWT_TOKEN>>' \
--header 'Content-Type: application/json' \
--data-raw '[{
"clientId":"qwer-iuhjkjhv-oijhgfcv"
"facilityInfo": {
"facilityId": "123",
"facilityName": "Delhi MMU"
},
"indentInfo": {
"indentId": "IND1234",
"indentName": "INDENT001"
},
"itemInfo": [{
"itemUID": "ITEM0001",
"itemName": "Levocetrizine syrup",
"itemType": "Syrup",
"units": "ml",
"quantity": 10,
"batchNo": "TAB000001",
"batchExpiryDate": 1709899704000
},
{
"itemUID": "ITEM0002",
"itemName": "Cefixime 200 mg oral tablet",
"itemType": "Tablet",
"units": "no",
"quantity": 10,
"batchNo": "TAB000002",
"batchExpiryDate": 1709899704000
}]
}]'
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 |
| itemType | Tablet / Capsule / Syrup | String | Yes |
| units | units of the Item | String | Yes |
| quantity | no. of quantity adding to the stock | Number | Yes |
| batchNo | batchno of the Item | String | Yes |
| batchExpDate | expiry date in Epoch Format in seconds | Number | Yes |