Returns supplier, nominal code and cost information pertaining to a selected Stock item.
Integer. The ID of the stock item.
Fm_api('Stock_getCosts', [ 'id'=>'3' ] );
Returns the following:
average_cost
nominal_code
supplier_id
supplier_name
Example:
If no stock ID provided:
Last updated 3 years ago
{"average_cost":"2.50","nominal_code":"2000","supplier_id":"4","supplier_name":"Test Supplier 4"}
{"error":"no stock id provided"}