Skip to content

Set or clear calculated pricing override

PUT https://api.secure.quotivity.com/v1/pricebooks/{priceBookId}/products/{productId}/calculated-pricing

Sets calculationIdOverride on the price book entry, or clears it when calculationId is null. The calculation id must exist for the account.

Send your API key in the x-api-key header. See Generating API keys.

Name Type Required Description
priceBookId string Yes
productId string Yes

Required, application/json: SetPriceBookProductCalculatedPricingRequest

Status Body Description
200 PriceBookEntry Updated price book entry
400 Unknown calculated pricing id
401 Unauthorized
404 Product is not in this price book
500 Internal Server Error

Extends PriceAdjustmentBase.

Field Type Required Description
type override Yes
amount number Yes

Extends PriceAdjustmentBase.

Field Type Required Description
type percent Yes
amount number Yes
Field Type Required Description
type string Yes
Field Type Required Description
accountId string Yes
priceBookId string Yes
productId string Yes
adjustments map of string to PriceBookEntryAdjustment Yes Price adjustments keyed by ISO 4217 currency code (for example USD, EUR). The key is the currency; the value carries the adjustment only.
calculationIdOverride string No When set, overrides default calculated pricing for this price book entry. Cleared when null.
allowUnitPriceEditing boolean No When true, sales reps may edit unit price in Quote Builder for this product on this price book (entry-level, not per currency).

Type: OverrideAdjustment | PercentAdjustment | VolumeAdjustment | TableEnumAdjustment | TableRangeAdjustment | VariantAdjustment

SetPriceBookProductCalculatedPricingRequest

Section titled “SetPriceBookProductCalculatedPricingRequest”
Field Type Required Description
calculationId string | null Yes Calculated pricing id to store on the entry, or null to clear the override.

Extends PriceAdjustmentBase.

Field Type Required Description
type enum Yes
property string Yes
values object[] Yes

Extends PriceAdjustmentBase.

Field Type Required Description
type range Yes
property string Yes
values object[] Yes

Extends PriceAdjustmentBase.

Field Type Required Description
type variant Yes
values object[] Yes

Extends PriceAdjustmentBase.

Field Type Required Description
type volume Yes
tiers object[] Yes