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