---
title: "What deciding one item means"
method: GET
path: "/v1/contract-desk/items/{id}/decision"
tags: ["Contract Desk"]
---

# What deciding one item means

`GET /v1/contract-desk/items/{id}/decision`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/contract-desk/items/{id}/decision`
- Auth: HTTP bearer

Everything the decision screen shows for one open item: the item, its contract line and site name, whether this key may decide it, the question and the letter link. A value's question carries Contract Check's attribute, each document's own value, the values to pick from, whether adding the value to the CRM is offered, what a decision becomes (`mode`, from Contract Check's own dry run) and a waiting suggestion; a key date's question its kind, day and actions; a step's its rule number. Missing documents and findings have no question: Contract Check has no write path for them. The source app is asked first whether it still holds the item open: an item it settled since the last build (a value decided in Contract Check, a key date or step handled in Contracts, a key date that changed there) answers 409 `gone` and asks for a build. A notice deadline whose contract Contracts holds an outcome for offers `handled` only. Requires scope `read`.

## Path parameters

- `id` string, uuid, required

## Response `200`

The decision package.

- ContractDeskDecisionPackage
  - `item` ContractDeskItem
    - `id` string, uuid
    - `kind` 'value' | 'documents_missing' | 'site_check' | 'text_check' | 'deadline' | 'step' | 'issue'
    - `source` 'contract_check' | 'contracts'
    - `crm_key` string, nullable
    - `site_key` string, nullable
    - `team` string, nullable: The team the item belongs to: a process step's department; else the team the workspace's Setup (`GET /v1/contract-desk/settings`) chooses for the value's attribute, then for the item's kind; else the team the configuration names for the kind (`contract_management` by default).
    - `due_date` string, date, nullable: An unhandled key date of a kind the configuration keeps past its day (`overdue_kinds`, notice deadlines by default) stays an item with its past date for up to `overdue_days` (90); a passed key date of any other kind is no item.
    - `critical` boolean
    - `urgency` 'now' | 'month' | 'behind' | 'later' | 'none': On the day of the read: now (critical, or due within the configured days; a passed key date included), month (within `month_days`, 30), behind (a process step whose planned day has passed), later, none (undated).
    - `group_key` string
    - `payload` object: Per kind. value: field_key, label, state, suggested. site_check and text_check: code, severity, params, contract_ids (left out on a `todo/items` page), role, type. deadline: key_date_id, kind, label, contract_id, contract_key. step: process_id, rule_id, rule_no, process_kind, contract_id, contract_key (contract_id and contract_key name the Contracts contract). issue: code, detail, document_ids, contract_id, contract_key. Any kind: info true when the item is information only (no app in the workspace can decide it; section info, no actions).
    - `first_seen_at` string, date-time
  - `contract` ContractDeskContractLine, nullable: The item's contract line, when it sits on a CRM contract.
    - `crm_key` string: The CRM record id, lower case.
    - `site_key` string
    - `role` string: sale, purchase, intercompany or unassigned.
    - `type` string, nullable
    - `name` string, nullable
    - `number` string, nullable
    - `partner` string, nullable
    - `partner_key` string, nullable: The partner, trimmed and lower case; what `GET /v1/contract-desk/contracts?partner=` matches.
    - `active` boolean
    - `start_date` string, date, nullable
    - `end_date` string, date, nullable
    - `has_documents` boolean: Talonic holds the contract's documents (where the Contracts app gives the contracts: at least one document is filed under it); a site's `with_documents` counts these lines.
    - `document_count` integer
    - `documents` object[]
      - `id` string, uuid
      - `name` string: The document's file name; its id where none is known.
    - `values` object: Required attributes, those in order, those open (the counts of the last build), and the open ones by state counted when the line is read.
      - `required` integer
      - `ok` integer
      - `open` integer
      - `suggested` integer: Open values with a decision suggested and waiting.
      - `states` ContractDeskValueStates: The open values of a tree line by state, counted when the line is read from its open value items: the document and the CRM differ (`mismatch`), only the document states a value (`crm_missing`), only the CRM does (`doc_missing`), neither does (`both_missing`), the CRM field is left empty on purpose while a suggestion waits (`declined`). A decided value leaves them at once, while the line's `open` (the last build's count) keeps it until the build that follows the decision: right after a build the states sum to `open`, in between the sum is lower by the values decided since.
        - `mismatch` integer
        - `crm_missing` integer
        - `doc_missing` integer
        - `both_missing` integer
        - `declined` integer
    - `todo` object
      - `now` integer
      - `open` integer
      - `undated_steps` integer: Process steps without a due date; not in `open`.
    - `next_notice` string, date, nullable: The contract's earliest open notice deadline; a past day when a notice deadline nobody handled is overdue.
    - `link` 'linked' | 'shared' | 'not_in_contracts' | 'no_documents': How the contract relates to the Contracts app.
    - `contract_id` string, uuid, nullable: The Contracts contract the link points at.
  - `site_name` string, nullable
  - `can_decide` boolean: This key may decide: scope `write` and its person holds `edit` right now, and the workspace added the item's source app.
  - `question` union: Null for missing documents and the two findings (Contract Check has no write path for them), and for a value Contract Check no longer holds.
    - object: A value.
      - `kind` 'value'
      - `field_key` string
      - `label` string
      - `state` 'mismatch' | 'crm_missing' | 'doc_missing' | 'both_missing' | 'declined'
      - `attr` object: The attribute exactly as `GET /v1/contract-check/contracts/{id}` returns it.
      - `documents` object[]: Each document of the contract that carries the attribute, in Contract Check's order, with its name and its own value.
        - `document_id` string
        - `name` string, nullable
        - `value` string, nullable
      - `options` object[]: The distinct non-empty values to pick from, the Talonic value first, each with every place it stands.
        - `value` string
        - `from` string[]
      - `crm_add` boolean: The action `crm_add` is offered: the CRM lacks a value Talonic holds.
      - `mode` 'decide' | 'suggest': What this caller's decision becomes, as Contract Check's own dry run answers it.
      - `suggestion` object, nullable: A suggestion waiting for a person who may settle the field; never accepted with a key (`can_accept` false).
        - `decision_id` string, uuid
        - `value` string, nullable
        - `by_name` string, nullable
        - `at` string, date-time
        - `can_accept` boolean
    - object: A key date.
      - `kind` 'deadline'
      - `key_date_kind` string
      - `label` string
      - `due_date` string, date
      - `actions` string[]
    - object: A process step.
      - `kind` 'step'
      - `rule_no` integer, nullable
      - `due_date` string, date, nullable
      - `actions` string[]
    - object: A Contracts issue: dismissing it needs a note saying why it is right as it stands; Contracts offers no reopen, so a dismissal is not undone.
      - `kind` 'issue'
      - `code` string
      - `detail` string, nullable
      - `documents` object[]
        - `document_id` string
        - `name` string, nullable
      - `actions` string[]
      - `note_required` true
  - `letter` ContractDeskLetter, nullable: The contract's record in Document Generation: the data product Contract Check reads and the contract's row in it. Set when the workspace added Document Generation, Contract Check's settings name a data product and the contract has a row; the desk produces no letter itself.
    - `product_id` string
    - `record_id` string

## Other responses

- `400`: The id is no uuid.
- `403`: The key lacks the `read` scope, or its person may not see every document the index names.
- `404`: The workspace has not added the app or is not in the pilot, or holds no such item.
- `409`: The item is gone (`details.reason` `gone`): a decision of this workspace closed it (with `details.by_name` and `details.at`), or the source app no longer holds it open (no name or time: the desk does not know who).

## Changes

- **2026-12-04** `88d2070c4878`: 1 breaking, 1 warning
  - added `subschema #4` to the `question` response property `oneOf` list for the response status `200`
  - added the new `issue` enum value to the `item/kind` response property for the response status `200`
- **2026-11-30** `2d33873df1fd`: 1 warning
  - added the new `behind` enum value to the `item/urgency` response property for the response status `200`
- **2026-11-19** `27b968c6df42`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/contract-desk/items/:id/decision/get.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
