Update Stock Quantity
The UpdateStockQuantitiesAsync() method allows businesses to update stock quantities for items recorded in Smart Invoice. This includes adjustments resulting from approved purchases, imports, sales, and other stock movements.
Accurate stock updates ensure that inventory levels remain synchronized across branches and that reports reflect the correct quantities.
UpdateStockQuantitiesAsync() method
This method is used to update stock quantities for one or more items. It requires specifying the item code and the new remaining stock quantity after adjustments.
Request Parameters
| Parameter | Type | Description |
|---|---|---|
| ItemCode | string | The unique code of the stock item to update |
| NewQuantity | decimal | The updated quantity of the item after adjustment |
| BranchId | string (optional) | Branch identifier (if updating stock at a specific branch) |
Usage Example

Example Successful Response
{
"resultCd": "000",
"resultMsg": "Stock quantity updated successfully",
"resultDt": "20250911123000",
"data": null
}