Update Proposal Item Supplier Cost
POST /public/proposals//items//cost — Sets an absolute supplier cost or a percentage-based cost on a proposal item.
Cost or a CostPercentage plus CostPercentageBasis. Exactly one of the two forms is required: supplying both, neither, or a percentage without its basis returns 400. As with sell price, the two forms replace each other.
Percentages are whole numbers — 15 means 15%, rounded to 2 decimals. The bases match update sell price, plus CostOfSellPrice, which is valid for cost only and makes the cost a percentage of the item’s own sell price.
Every basis is resolved when the proposal is read, not when you write it, so a percentage cost is never a fixed number: ProposalTotal, PartTotal, and LaborTotal move with the whole proposal, AreaTotal, PartsInAreaTotal, and LaborInAreaTotal move with the item’s own area option, and CostOfSellPrice moves with the item’s sell price. Re-read the proposal after a batch of writes rather than assuming the cost you sent is the cost stored.
costUpdateDate. It does not change which supplier the item uses — set item supplier does that. cost can come back null even on a successful write, if you do not have permission to see costs — the write still took effect.
SetDefault also saves the cost in the catalog against the supplier the item uses, and updates the company’s draft proposals and draft orders that carry the same part without a cost of their own. For a Part only an absolute cost is saved; a percentage-based update saves nothing and clears any cost saved there before. Labor, CustomItem, and Fee items keep the cost, percentage, and basis on their library item.
UpdateAllInstances applies the change to the proposal’s other items from the same source item that share both its item type and its assigned supplier.
Authorizations
Portal application identifier used as part of HMAC-authenticated API requests.
Portal user API key used together with the HMAC signature headers.
Timestamp header included in the signed request to prevent replay attacks.
HMAC-SHA256 signature for the request, calculated over the canonical string defined in the authentication docs.
Headers
Accept Header
application/json Path Parameters
Unique ID of the proposal (not the proposal number).
Id of the proposal item to update. Must belong to the proposal.
Body
Proposals Service
Absolute per-unit supplier cost, mutually exclusive with costPercentage. Supplying it clears any stored percentage and basis.
Cost as a whole percent of the chosen basis (15 means 15%), with the resulting cost rounded to 2 decimals. Requires costPercentageBasis, is mutually exclusive with cost, and clears any stored absolute cost. Ignored while the item is a recurring service.
ProposalTotal, PartTotal, LaborTotal, AreaTotal, PartsInAreaTotal, LaborInAreaTotal, CostOfSellPrice When true, also save this cost in the catalog so later proposals start with it. For a Part, only an absolute cost is saved, against the supplier the item uses: a percentage-based update saves no cost and clears any cost saved there before. The company's draft proposals and draft orders that carry that part without a cost of their own are updated too. For a Labor, CustomItem, or Fee item, the cost, percentage, and basis are saved on the library item. Defaults to false.
When true, apply the change to every other instance of the same catalog item in this proposal that shares its item type and assigned supplier, across all area options. Defaults to false.
Response
Success
Unique numeric identifier of the proposal item
Identifier of the catalog, labor, custom, or fee item this proposal item was created from
UTC timestamp when the proposal item was created
Quantity of the proposal item
Identifier of the parent item when this item is nested under another item
Part, Labor, CustomItem, Fee UTC timestamp when the proposal item was last modified
Brand name of the item
Model value of the item
Name of a Labor item
Short description shown for the proposal item
Client-facing note for the proposal item
Image URL of the item
MSRP amount of the item
Sell price for the proposal item
Supplier cost for the proposal item
UTC timestamp when the supplier cost was last updated
Display name of the supplier assigned to the item.
Total amount for a proposal item
Whether the proposal item is tax exempt
Whether the proposal item is a recurring service
Linked orders created from this proposal item