Skip to content
Axis Solutions ZMB
YouTube

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

ParameterTypeDescription
TPINstringTaxpayer Identification Number of the business
Branch IdstringIdentifier for the branch
LastReqDtstringTimestamp of the last request (format: yyyyMMddHHmmss)

Usage Example

classification codes

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"
      }
    ]
  }
}