Stock Used
GET /stockUsed
Returns historical stock used across all jobs, optionally filtered by filterDateFrom.
Stock used is defined as material line items that:
- Have been invoiced to the customer (sent or paid).
- And are assigned as materials sales account.
- And are not from purchase orders.
- And are not invoiced from suppliers.
Request
- Base URLhttps://api.fergus.com
- Auth
- OAuth 2Authorization codehttps://auth.fergus.com/oauth2/authorizeToken URLhttps://auth.fergus.com/oauth2/token
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
filterDateFromstring date
Filter stock used on or after this date (yyyy-mm-dd) default is 90 days ago and max up to 180 days ago
pageCursorstring
Response
Successful Response
Changes
No recorded changes to this operation across all 18 revisions of this API.