---
title: "Merge renumbered contracts and attach unnumbered documents"
method: POST
path: "/v1/contracts/reconcile"
tags: ["Contracts"]
---

# Merge renumbered contracts and attach unnumbered documents

`POST /v1/contracts/reconcile`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/contracts/reconcile`
- Auth: HTTP bearer

Merges a renumbered contract into the key it continues under when that contract exists, and attaches a document with no contract number anywhere (not a base contract) to the one contract whose base contract names the same counterparty (and site, when the document names one). Documents a person filed by hand never move. With `dry_run` it reports the moves and makes none.

## Request body

- object
  - `dry_run` boolean: Report the merges and attachments without making them.

## Response `201`

The planned (or made) moves.

- ContractsReconcileResult
  - `dry_run` boolean
  - `merged` integer: Number of contract merges planned.
  - `attached` integer: Number of document attachments planned.
  - `merge` object[]
    - `contract_id` string, uuid
    - `from_key` string
    - `into_key` string
  - `attach` object[]
    - `row_id` string, uuid: The `id` of the document entry in the contract `documents`.
    - `document_id` string, uuid
    - `from_key` string
    - `into_key` string
    - `why` string

## Other responses

- `400`: The request is invalid.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

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