Save Stock Items
The Stock API allows businesses to record new stock items in Smart Invoice.
This endpoint ensures that inventory updates from approved purchases, imports, sales, and stock movement adjustments (e.g., interbranch transfers) are reflected accurately.
⚠️ Dependency: After calling this endpoint, a subsequent call to Save Stock Master must be made to update the overall stock quantities.
SaveStockItems() method
This method saves stock item data into Smart Invoice. It is mandatory for all industries except the service industry.
Request Parameters
| Parameter | Type | Description |
|---|---|---|
| TPIN | string | Taxpayer Identification Number of the business |
| Branch Id | string | Branch identifier where the stock is being saved |
| Item Code | string | Unique identifier for the item |
| Quantity | decimal | Quantity of the stock item being added |
| Adjustment Reason | string | Reason for stock adjustment (e.g., Purchase, Import, Transfer) |
| Total Amount | decimal | Total stock amount for the item |
Usage Example

Successful Response
{
"success": true,
"code": "000",
"message": "Operation completed successfully",
"timestamp": "2025-09-22 15:14:37",
"data": null,
"error": null
}