---
title: "POST /api/cascade-tracing/orders/unlink-sales-order"
method: POST
path: "/api/cascade-tracing/orders/unlink-sales-order"
tags: ["Order Tracing - Orders"]
---

# POST /api/cascade-tracing/orders/unlink-sales-order

`POST /api/cascade-tracing/orders/unlink-sales-order`

## Request

- Base URL: `https://api.retraced.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.retraced.com/api/cascade-tracing/orders/unlink-sales-order`
- Auth: none declared

Undoes the link between one of the caller's purchase orders and one of its sales orders (archived ones included): the pair is removed, the purchase order's own tracing link reconnected and the link to the sales order's node disconnected. The documents and transactions the link copied stay. 404 `not_found` when either order is missing, removed or another company's; 400 `unable_to_unlink` when either link is missing. The link and the partners' notifications are refreshed in the background.

## Request body

- object
  - `purchaseOrderId` string, required
  - `salesOrderId` string, required

## Response `204`

No content

- 'null', nullable: No content

## Other responses

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

## Changes

> 108 revisions in range; 2 not diffed.

- **2026-10-09** `ddfec192e804`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/retraced/apis/api-reference/changes/api/cascade-tracing/orders/unlink-sales-order/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.dev/retraced/apis/api-reference/revisions/83309c4abd20?raw)
