_deleteByIds
Last updated
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']);The amount of stock that was deleted. For example:
{"ok":1,'deleted':56}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:
If there are no stocks within the given range of IDs:
Last updated
{'error':'IDs not in 123-456 format'}{'error':'no stock in the database has IDs in that range'}