Set or clear calculated pricing override
PUT https://api.secure.quotivity.com/v1/pricebooks/{priceBookId}/products/{productId}/calculated-pricingSets 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.
Path parameters
Section titled “Path parameters”| Name | Type | Required | Description |
|---|---|---|---|
priceBookId |
string | Yes | — |
productId |
string | Yes | — |
Request body
Section titled “Request body”Required, application/json: SetPriceBookProductCalculatedPricingRequest
Responses
Section titled “Responses”| 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 |
Schemas
Section titled “Schemas”CostPlusAdjustment
Section titled “CostPlusAdjustment”Derives the list price from the product’s hs_cost_of_goods_sold: basis amount adds value to cost; basis percent applies value as a fraction of cost (0.3 = 30%) as a markup (cost × (1 + value)) or a margin (cost ÷ (1 − value)). Non-primary currencies convert the cost with the account’s cached HubSpot exchange rate. value must not be negative and a margin must be below 1. Requires the Cost Plus feature (Enterprise).
Extends PriceAdjustmentBase.
| Field | Type | Required | Description |
|---|---|---|---|
type |
costplus |
Yes | — |
basis |
amount | percent |
Yes | — |
mode |
markup | margin |
No | Read only when basis is percent; defaults to markup. |
value |
number | Yes | Currency amount above cost for amount; fraction of cost for percent. |
round |
boolean | No | Round the derived price to 2 decimals (default true); false keeps 5 decimals. |
GraduatedAdjustment
Section titled “GraduatedAdjustment”Graduated (tiered) pricing: each tier’s units are charged at that tier’s unitPrice and the line’s list price is the blended average over the product’s total quantity on the quote (for example tiers ≤10 @ 10, ≤20 @ 9, then 8: quantity 23 totals 214, list price 9.30435). Tiers are continuous: only each lastUnit matters and it must increase; firstUnit is derived from the previous tier and the last tier is open-ended. Unit price editing is always off for graduated entries. Requires the Graduated Pricing feature (Enterprise).
Extends PriceAdjustmentBase.
| Field | Type | Required | Description |
|---|---|---|---|
type |
graduated |
Yes | — |
tiers |
object[] | Yes | — |
round |
boolean | No | Round the blended list price to 2 decimals. Default false keeps 5 decimals. |
OverrideAdjustment
Section titled “OverrideAdjustment”Extends PriceAdjustmentBase.
| Field | Type | Required | Description |
|---|---|---|---|
type |
override |
Yes | — |
amount |
number | Yes | — |
PercentAdjustment
Section titled “PercentAdjustment”Extends PriceAdjustmentBase.
| Field | Type | Required | Description |
|---|---|---|---|
type |
percent |
Yes | — |
amount |
number | Yes | — |
PriceAdjustmentBase
Section titled “PriceAdjustmentBase”| Field | Type | Required | Description |
|---|---|---|---|
type |
string | Yes | — |
PriceBookEntry
Section titled “PriceBookEntry”| 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. On a contract price book, a missing or null currency inherits the parent’s adjustment. |
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). |
variantTemplate |
string | No | Product variant template for this price book entry. Cleared when null. |
excluded |
boolean | No | Contract price books only: the product is unavailable on this price book in every currency, even though the parent prices it. |
PriceBookEntryAdjustment
Section titled “PriceBookEntryAdjustment”Type: OverrideAdjustment | PercentAdjustment | CostPlusAdjustment | VolumeAdjustment | GraduatedAdjustment | 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. |
TableEnumAdjustment
Section titled “TableEnumAdjustment”Extends PriceAdjustmentBase.
| Field | Type | Required | Description |
|---|---|---|---|
type |
enum |
Yes | — |
property |
string | Yes | — |
values |
object[] | Yes | — |
TableRangeAdjustment
Section titled “TableRangeAdjustment”Extends PriceAdjustmentBase.
| Field | Type | Required | Description |
|---|---|---|---|
type |
range |
Yes | — |
property |
string | Yes | — |
values |
object[] | Yes | — |
VariantAdjustment
Section titled “VariantAdjustment”Extends PriceAdjustmentBase.
| Field | Type | Required | Description |
|---|---|---|---|
type |
variant |
Yes | — |
values |
object[] | Yes | — |
VolumeAdjustment
Section titled “VolumeAdjustment”Extends PriceAdjustmentBase.
| Field | Type | Required | Description |
|---|---|---|---|
type |
volume |
Yes | — |
tiers |
object[] | Yes | — |
Ask the help center
Answers come from these guides, with links to the articles used.
Ask anything about configuring quoting in Quotivity Studio.