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

# POST /api/cascade-tracing/transactions/attach-origin

`POST /api/cascade-tracing/transactions/attach-origin`

## Request body

- object
  - `nodeId` string, required
  - `meta` object, required
    - `orderId` string, required
    - `type` 'PURCHASE_ORDER' | 'SALES_ORDER', required
  - `facilityProcesses` string[], required
  - `countryCode` string
  - `lines` object[], required
    - `styleId` string, required
    - `quantity` number, required
    - `unit` string, required
    - `secondaryQuantity` number, nullable
    - `secondaryUnit` string
  - `documents` object[], required
    - `id` string, nullable
    - `fileId` string, required
    - `type` string, required
    - `name` string
    - `reference` string
    - `description` string
    - `fileUrl` string
  - `attachmentTemplateId` string, nullable

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required

## 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` — 4 breaking, 1 warning, 4 info
  - request property `attachmentTemplateId` list-of-types was narrowed by removing types `null` from media type `application/json`
  - request property `documents/items/id` list-of-types was narrowed by removing types `null` from media type `application/json`
  - request property `lines/items/secondaryQuantity` list-of-types was narrowed by removing types `null` from media type `application/json`
  - the `attachmentTemplateId` request property's minLength was increased from `0` to `1`
  - …5 more

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/cascade-tracing/transactions/attach-origin/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)
