_addStock
Adds a Stock item to a Stock Category.
Parameters
stock_id
The stock item ID add to the category.
cat_id
The stock category ID which the stock item will be added to..
Example
Result
On Success
On failure
If the cat_id is not provided in the parameters. {'error':'no cat_id'}
If the stock_id is not provided in the parameters. {'error':'no stock_id'}
If the stock category does not exist. {'error':'stock category does not exist'}
Last updated