Get Stock Items
The Stock API enables businesses to retrieve and manage inventory data stored in Smart Invoice.
This ensures third-party systems can stay synchronized with accurate stock levels across branches or locations.
GetStockLevelsAsync() method
This method retrieves stock information for all items, including quantities, item details, and branch-level stock.
Request Parameters
NB: These details are stored in the configuration files
| Parameter | Type | Description |
|---|---|---|
| TPIN | string | Taxpayer Identification Number of the business |
| Branch Id | string | Identifier for the branch |
| LastReqDt | string | Timestamp of the last request (format: yyyyMMddHHmmss) |
Usage Example
![]()
Example Successful Response
{
"resultCd": "000",
"resultMsg": "It is succeeded",
"resultDt": "20250911120000",
"data": {
"stockItemList": [
{
"itemCd": "TEST001",
"itemNm": "Test Product",
"itemClsCd": "43191501",
"qtyAvailable": 50,
"branchId": "000",
"pkgUnitCd": "CT",
"qtyUnitCd": "U",
"lastUpdated": "20250910120000"
},
{
"itemCd": "TEST002",
"itemNm": "Sample Product",
"itemClsCd": "43191502",
"qtyAvailable": 100,
"branchId": "000",
"pkgUnitCd": "BOX",
"qtyUnitCd": "U",
"lastUpdated": "20250910120000"
}
]
}
}