Contract Pricing

Edit, confirm or exclude a price model, set its contract key, link a later version

Changed on

All body fields are optional. A replaced model goes through the same sanitiser as an extraction, so an edited number without a quote that occurs in the contract and prints it is stored as unverified; a value may instead be quoted from another document of the workspace (set that document's id on the variable's evidence). status excluded keeps a document that sets no price (a withdrawn letter, a cover mail) out of the version chain. contract_key groups models into one contract (a non-empty value is stored as a hand-set key; null restores the key the file or the contract gives). superseded_by links the model of a later amendment or price sheet; that model must state a valid_from on or after this model's, price in the same currency and not lead back to this model (422); null unlinks. The change is announced to other apps as a model change.

put/v1/price-baseline/models/{id}

Request

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

Path parameters

id, string uuid required

Request body

object required
model, PriceBaselineModelBody

A contract's price clause as one standard, evaluable model.

status, 'draft' | 'confirmed' | 'excluded'
contract_key, string nullable

The contract number this document belongs to; null clears a hand-set key.

superseded_by, string uuid nullable

Model of the later amendment or price sheet that replaces this one from its own valid_from; null unlinks.

Response

The updated model.

PriceBaselineModel required

A stored price model; one per contract document.

id, string uuid
customer_id, string uuid
document_id, string uuid

The contract document the model was read from.

contract_label, string
model, PriceBaselineModelBody

A contract's price clause as one standard, evaluable model.

status, 'draft' | 'confirmed' | 'excluded'

draft straight from extraction, confirmed once a person has checked it, excluded sets no price and is left out of the version chain.

extracted_with, string nullable

Model id the extraction used.

valid_from, string nullable

ISO date, mirrored from model.valid_from.

contract_key, string nullable

The contract number, normalised; every model with the same key is a version of one contract.

superseded_by, string uuid nullable

The model that replaces this one from its own valid_from.

created_at, string date-time
updated_at, string date-time

Changes