---
title: "POST /api/cascade-tracing/transactions/attach-link-documents"
method: POST
path: "/api/cascade-tracing/transactions/attach-link-documents"
tags: ["OrderTracing - Transactions"]
---

# POST /api/cascade-tracing/transactions/attach-link-documents

`POST /api/cascade-tracing/transactions/attach-link-documents`

## Request body

- object
  - `linkId` string, required
  - `documents` object[], required
    - `fileId` string
    - `documentId` string
    - `type` string, required
    - `reference` string
    - `description` string
    - `meta` object

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `linkTransaction` object, required
      - `id` string, required
      - `linkId` string, required
      - `transactionType` string, nullable
      - `createdAt` string, date-time, nullable
    - `documents` object[], required
      - `id` string, required
      - `documentId` string, nullable
      - `name` string, nullable
      - `reference` string, nullable
      - `description` string, nullable
      - `type` string, required
      - `fileId` string, nullable
      - `fileName` string, nullable
      - `fileType` string, nullable
      - `fileContentType` string, nullable
      - `fileUrl` string, nullable
      - `synced` number, nullable
      - `meta` object, nullable
      - `createdAt` string, date-time, nullable

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response

## Changes

> 23 revisions in range; 1 not diffed.

- **2026-08-31** `97e51f27dc77` — 14 breaking, 14 info
  - the response property `data/documents/items/createdAt` became nullable for the status `200`
  - the response property `data/documents/items/description` became nullable for the status `200`
  - the response property `data/documents/items/documentId` became nullable for the status `200`
  - the response property `data/documents/items/fileContentType` became nullable for the status `200`
  - …24 more

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/cascade-tracing/transactions/attach-link-documents/post.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) · [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/fde251beb0ca/schema)
