_get

Get details about a Stock item

Parameters

id

Integer ID for the stock item.

Example

FM_api('Stock_get',
	[
		'id'=>'7'
	]
);

Example Result if stock exists

{"id":"7","name":"2kg 1.75mm PLA Filament","average_cost":"12.99","cdate":"2018-03-16 10:42:22","owner_id":"0","in_stock":"9","categories":null,"last_edited":"2018-03-16 12:26:44","code":"PLA001","is_archived":"0","amt_trigger":null,"description":"PLA filament for 3D printers. Melt point 185deg Celsius","supplier_id":"0","price":"15.9900","notes":null,"nominal_code":"0"}

Result if stock does not exist

false

Last updated