Replace a Proposal Item
POST /public/proposals//items//replace — Swaps a proposal item for a different catalog item.
NewCatalogItemId. ItemType describes the incoming item and does not have to match the type of the one being replaced.
What survives the swap and what comes from the new item:
ReplaceAll extends the swap to the proposal’s other items that come from the same source item and share its item type; instances sitting in a declined area option are left alone. Defaults to false.
IncludeAttachments also adds the items attached to each replacement, nested under it. It defaults to false here and requires the account’s plan to include product attachments. Attachment items are listed in the response along with the replacements.
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 replace.
Body
Proposals Service
Identifier of the source item to replace with, matching itemType. Part ids come from GET /public/catalog; ids for Labor, CustomItem, and Fee items are not exposed by the public API yet.
Part, Labor, CustomItem, Fee When true, also replace every other instance of the same catalog item in this proposal that shares its item type. Instances sitting in a declined area option are left alone. Defaults to false.
When true, also add the items attached to each replacement item, nested under it. Requires the account's plan to include product attachments. 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