Save Stock Master
The Stock Master API is responsible for updating existing stock quantities in Smart Invoice.
It ensures that all approved purchases, imports, sales, and stock adjustments (including interbranch transfers) are accurately reflected in the system.
This endpoint is mandatory and should be called immediately after using the Save Stock Items endpoint.
SaveStockMaster() method
This method updates stock quantities for items already registered in Smart Invoice.
Request Parameters
| Parameter | Type | Description |
|---|---|---|
| TPIN | string | Taxpayer Identification Number of the business |
| Branch Id | string | Branch identifier where the stock update is applied |
| Item Code | string | Unique identifier for the stock item |
| Remain Quantity | decimal | Remaining stock quantity after adjustment |
| Adjustment Type | string | Adjustment reason (Purchase, Sale, Import, Transfer, etc.) |
Usage Example

Example Successful Response
{
"success": true,
"code": "000",
"message": "Operation completed successfully",
"timestamp": "2025-09-22 11:16:54",
"data": null,
"error": null
}