Playground

Playground

Contract

/api/v1/contracts/contracts

A master contract with a Vendor.

listgetcreateupdateterminate

Schema

FieldTypeNotes
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumfrontend | backend | server | system | apiWhere the write originated. Defaults to 'api'.
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
vendor_iduuidUUID of the Vendor that is party to this contract.
owner_iduuidUUID of the Person (employee) who owns and is accountable for this contract internally.
typestringContract type classification. 'msa' = Master Service Agreement; 'sow' = Statement of Work; 'ela' = Enterprise License Agreement.
namestringHuman-readable name for this contract (e.g. 'Acme SaaS Platform — 2025 Renewal').
statusstringLifecycle status of the contract. 'executed' = signed but not yet in the effective date window; 'active' = currently in force.
signed_datedate-timeISO 8601 date when the contract was signed by all parties. Null if not yet executed.
effective_datedate-timeISO 8601 date when the contract's obligations begin. May differ from signedDate.
expiry_datedate-timeISO 8601 date when the contract expires or must be renewed. Null for evergreen contracts.
notice_period_daysnumberNumber of days notice required to terminate the contract before its expiry.
auto_renewal_window_daysnumberIf set, the contract auto-renews unless cancelled at least this many days before the expiryDate (e.g. 60 means cancel 60 days before expiry or it renews automat
valuenumberTotal contract value (TCV) in the specified currency. Null if the value is time-and-materials or otherwise variable.
currencystringISO 4217 3-character currency code for the contract value (e.g. 'USD', 'EUR', 'GBP'). Null if value is null.
linked_license_idsjsonUUIDs of SoftwareLicense records that are governed by or created as a result of this contract.
document_refstringMinIO object path to the stored contract document (e.g. 'contracts/2024/acme-saas-renewal.pdf'). Access controlled by the cPod storage layer.
notesstringInternal notes about the contract visible only to authorized users.
tagsjsonFlat string tags for filtering and grouping.

API

client.contracts.contracts.*
Loading manifest…