Contract Pricing

Extract a contract's price model

Changed on

Reads the contract document with the extraction model and stores its price clause as a draft model, replacing an earlier draft for the same document. Every stated value is kept only when its quote occurs in the document and prints the value. A hand-set contract key survives re-extraction. An answer without price components never replaces a model that has them (502). The call runs the model in the request.

post/v1/price-baseline/models

Request

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

Request body

object required
document_id, string uuid required

Contract document of the workspace.

use_opus, boolean

Use the stronger model for contracts the default model leaves notes on.

Response

The stored draft 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