Contracts

Set, clear or mark one term of a document

Changed on

Gives one term of one document one of three answers. With value and quote, the value counts only when the quote occurs in the document and prints the value; otherwise the request is refused with 422 and nothing is saved. With clear: true, the document is recorded as not stating the term (it was read wrongly), across re-reads. With state: not_maintained, the term is deliberately empty in the contract and in the ERP. Clearing and not_maintained need a note and are exclusive: neither combines with the other, with value or with quote; title and is_draft cannot be not_maintained.

post/v1/contracts/{id}/documents/{rowId}/terms

Request

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

Path parameters

id, string uuid required
rowId, string uuid required

The id of the entry in the contract documents.

Request body

object required
field, 'title' | 'counterparty' | 'our_party' | 'our_side' | 'family' | 'site' | 'signed_date' | 'effective_date' | 'service_start' | 'expiry_date' | 'initial_term_months' | 'auto_renewal' | 'renewal_term_months' | 'notice_days' | 'notice_months' | 'terminated_on' | 'annual_value' | 'currency' | 'escalation_pct' | 'escalation_date' | 'min_commitment' | 'cap_amount' | 'payment_terms_days' | 'governing_law' | 'is_draft' required

The canonical term vocabulary.

value, union

String, number, boolean or ISO date, per the field type. Required unless clear or state is set.

quote, string

Copied from the document. Required with value.

clear, boolean
state, 'not_maintained'
note, string

Response

The recomputed contract.

ContractsContract required

One contract, folded from its documents.

id, string uuid
customer_id, string uuid
contract_key, string
key_source, 'filename' | 'contract' | 'manual' | 'document' | 'rule'

How the contract got its key: the document store filename, the printed contract number, a person, its first document (no number anywhere) or a key rule.

title, string nullable
counterparty, string nullable
status, 'draft' | 'active' | 'expired' | 'terminated' | 'unknown'

As of computed_on.

effective_date, string date nullable
expiry_date, string date nullable

The end in force: the printed end rolled forward by auto-renewal, or the termination date when earlier.

printed_expiry, string date nullable

The printed end when auto-renewal moved expiry_date past it.

notice_deadline, string date nullable
terminated_on, string date nullable
auto_renewal, boolean nullable
terms, object

Terms in force by canonical field name (see ContractsTermField).

obligations, ContractsObligation[]
fingerprint, string nullable
published_fingerprint, string nullable
computed_on, string date nullable
created_at, string date-time
updated_at, string date-time

Changes