Contract Pricing

Make an assumption

Changed on

Records a value assumed where no source exists. Every number or plan amount built on it is marked as assumed and never counts as independent; a real value arriving replaces it with no action. Rules: value needs value (except for target kind profile); carry_forward applies to target kind series only; proxy and target kind profile need params.series; the target * (a default for every series) is allowed only as target kind series with rule carry_forward. Violations are 422. The record notes the creating key as api:<key id>.

post/v1/price-baseline/assumptions

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Request body

PriceBaselineAssumptionInput required
contract_key, string nullable

The contract it applies to; null or absent applies to every contract of the workspace.

target_kind, 'series' | 'variable' | 'quantity' | 'profile' required

What the assumption stands in for: an index series, a contract value (by variable name), a price's billing quantity (by component key), or how annual energy spreads over the months (profile, target energy).

target, string required

Series key, variable name or component key; * is a workspace default for every series.

period_from, string nullable
period_to, string nullable
rule, 'value' | 'carry_forward' | 'proxy' required

value this number; carry_forward the last real value before the period; proxy another series' value times params.factor.

value, number nullable
unit, string nullable
params, object
note, string nullable

Why the assumption is made.

Response

The stored assumption.

PriceBaselineAssumptionRecord required
object
customer_id, string uuid
active, boolean
created_at, string date-time
updated_at, string date-time

Changes