Contract Pricing

Set a contract value with its verbatim quote

Changed on

Sets the value of a contract variable (not an index variable). The quote must occur in the model's contract document and print the value, otherwise nothing is saved (422). The model is saved through the same path as an edit.

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

Request

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

Path parameters

id, string uuid required

Request body

object required
variable, string required

Name of a non-index variable of the model.

value, number required
quote, string required

The passage of the contract that prints the value.

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