---
title: "GET order links"
method: GET
path: "/orders/{order_id}/links"
tags: ["Orders"]
---

# GET order links

`GET /orders/{order_id}/links`

## Request

- Base URL: `https://api.equipmentshare.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.equipmentshare.com/orders/{order_id}/links`
- Auth: HTTP bearer

Related records linked to an order, grouped by type. Sales orders and work orders are hydrated from ESDB; purchase orders are returned as ids for the client to resolve against CostCapture.

## Path parameters

- `order_id` integer, required

## Response `200`

- OrderLinksResponse
  - `purchase_orders` LinkedPurchaseOrder[], required
    - `order_link_id` integer, required
    - `purchase_order_id` string, required
  - `sales_orders` LinkedSalesOrder[], required
    - `branch_name` string, nullable
    - `company_id` integer, nullable
    - `company_name` string, nullable
    - `order_id` integer, required
    - `order_link_id` integer, required
    - `order_status` string, nullable
  - `work_orders` LinkedWorkOrder[], required
    - `description` string, nullable
    - `order_link_id` integer, required
    - `status` string, nullable
    - `work_order_id` integer, required
    - `work_order_type_id` integer, nullable

## Other responses

- `401`: Unauthorized – valid Bearer token required.
- `403`: Forbidden – admin role required.
- `404`: Order not found.

## Changes

- **2026-12-01** `40651e1558ac`: 1 info
  - added the media type `application/json` for the response with the status `200`
- **2026-12-01** `e598b74c6170`: 1 breaking
  - removed the media type `application/json` for the response with the status `200`
- **2026-11-30** `beba24fafb51`: 1 info
  - added the media type `application/json` for the response with the status `200`
- **2026-11-30** `c20ff16a0438`: 1 breaking
  - removed the media type `application/json` for the response with the status `200`
- **2026-11-30** `f6ee63f54e57`: 1 info
  - added the media type `application/json` for the response with the status `200`

[Operation history](https://skmtc.dev/equipmentshare/apis/es-api/changes/orders/:order_id/links/get.md)

---

[API](https://skmtc.dev/equipmentshare/apis/es-api.md) - [All operations](https://skmtc.dev/equipmentshare/apis/es-api/llms.txt) - [OpenAPI document](https://skmtc.dev/equipmentshare/apis/es-api/revisions/40651e1558ac?raw)
