Jobs - Phases
POST /phases/{jobPhaseId}/stockOnHand
Add stock on hand to job phase. Two scenarios are supported:
With priceBookLineItemId: Only itemQuantity is required. itemPrice and itemCost will be populated from the price book item. itemDescription is derived from the price book item's productCode and name: the product code followed by a space and the product name, or just the product name when there is no product code, truncated to 500 characters. No other fields may be passed.
Without priceBookLineItemId: itemDescription, itemPrice, itemCost, and itemQuantity are all required.
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.
Path parameters
jobPhaseIdinteger required
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 18 revisions of this API.