Delete a range of Stock items by their IDs.



The range of IDs for the stock items to be deleted, in the form of xxx-yyy.


FM_api('Stock_deletebyIDs', ['ids'=>'123-456']);


On Success

The amount of stock that was deleted. For example:


On Failure

If the user is not logged in:

{'error':'not logged in'}

If the user is not the main account user:

{'error':'only the main account user can delete by IDs'}

If the range of IDs are not given or are in the wrong format:

{'error':'IDs not in 123-456 format'}

If there are no stocks within the given range of IDs:

{'error':'no stock in the database has IDs in that range'}

Last updated