---
title: "Choose the Spec that connects documents"
method: PUT
path: "/v1/ap/dossier"
tags: ["Accounts Payable"]
---

# Choose the Spec that connects documents

`PUT /v1/ap/dossier`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/ap/dossier`
- Auth: HTTP bearer

Sets which Spec's finished table says which documents each invoice's check reads, and the columns holding each identifier. `dossier: null` unsets it. No check starts without one.

## Request body

- object
  - `dossier` ApDossier, nullable
    - `schema_id` string, uuid, required
    - `columns` object, required
      - `supplier_id` string
      - `order_number` string
      - `contract_number` string
      - `invoice_number` string
      - `document_type` string
      - `order_value` string
      - `document_date` string
      - `order_conditions` string: The column holding the observations a purchase order sets.
      - `contract_conditions` string: The column holding the conditions a contract sets to release payments.
      - `valid_until` string: The column holding the date to which a document (a policy, a guarantee) is in force.
    - `order_type` string, nullable
    - `contract_value` number, nullable: The order value (ledger currency) from which a contract is expected when the order sets no observations.
    - `contract_type` string, nullable: The document type of a contract, looked for in the file of an order that is expected to have one.

## Response `200`

The choice as saved and the options.

- ApDossierOptions
  - `selected` ApDossier, nullable
    - `schema_id` string, uuid, required
    - `columns` object, required
      - `supplier_id` string
      - `order_number` string
      - `contract_number` string
      - `invoice_number` string
      - `document_type` string
      - `order_value` string
      - `document_date` string
      - `order_conditions` string: The column holding the observations a purchase order sets.
      - `contract_conditions` string: The column holding the conditions a contract sets to release payments.
      - `valid_until` string: The column holding the date to which a document (a policy, a guarantee) is in force.
    - `order_type` string, nullable
    - `contract_value` number, nullable: The order value (ledger currency) from which a contract is expected when the order sets no observations.
    - `contract_type` string, nullable: The document type of a contract, looked for in the file of an order that is expected to have one.
  - `state` 'none' | 'processing' | 'ready'
  - `specs` object[]
    - `schema_id` string, uuid
    - `name` string
    - `columns` string[]

## Other responses

- `400`: The request is invalid.

## Changes

- **2026-11-20** `d95cea458085`: 16 info
  - added the new optional request property `dossier/allOf[#/components/schemas/ApDossier]/columns/contract_conditions`
  - added the new optional request property `dossier/allOf[#/components/schemas/ApDossier]/columns/document_date`
  - added the new optional request property `dossier/allOf[#/components/schemas/ApDossier]/columns/order_conditions`
  - added the new optional request property `dossier/allOf[#/components/schemas/ApDossier]/columns/order_value`
  - …12 more
- **2026-11-17** `ce37a1dc3503`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/ap/dossier/put.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)
