Contracts

Set a document's role, exclusion or contract key

Changed on

Changes how one document of the contract counts. role and excluded change the fold; contract_key files the document under another contract (hand-set, so re-extraction keeps it) and null returns it to its derived key. Every change is audited with the calling key as the actor and the optional note.

put/v1/contracts/{id}/documents/{rowId}

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
role, 'master' | 'amendment' | 'renewal' | 'termination' | 'price_sheet' | 'correspondence' | 'other'
excluded, boolean

Leave the document out of the fold (a withdrawn draft, a misfiled letter).

contract_key, string nullable
note, string

Response

The recomputed contract (the contract the document is filed under after the change when the key changed).

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