Contract Pricing

Read contract identity and agreed quantities into a model

Changed on

Reads the contract number, customer, supply site and agreed quantities from the model's contract document into a model that already has its prices (for example one corrected by hand), without re-extracting its formulas and values. Keys the model by contract number when it has no key yet. The call runs the extraction model in the request.

post/v1/price-baseline/models/{id}/enrich

Request

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

Path parameters

id, string uuid required

Response

The enriched 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