Delete a range of Stock items by their IDs.

Parameters

ids

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

Example

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

Result

On Success

The amount of stock that was deleted. For example:

{"ok":1,'deleted':56}

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'}