---
title: "Find related objects"
method: GET
path: "/Order/{orderId}/getRelatedObjects"
tags: ["Order"]
---

# Find related objects

`GET /Order/{orderId}/getRelatedObjects`

Get related objects of a specified order

## Path parameters

- `orderId` integer, required

## Query parameters

- `includeItself` boolean
- `sortByType` boolean
- `embed` string[]

## Response `200`

Successful operation

- object
  - `objects` ModelOrderPosResponse[]
    - `id` string — The order position id
    - `objectName` string — The order position object name
    - `create` string, date-time — Date of order position creation
    - `update` string, date-time — Date of last order position update
    - `order` object — The order to which the position belongs.
      - `id` string, required — Unique identifier of the order
      - `objectName` string, required — Model name, which is 'Order'
    - `part` object — Part from your inventory which is used in the position.
      - `id` string, required — Unique identifier of the part
      - `objectName` string, required — Model name, which is 'Part'
    - `quantity` string — Quantity of the article/part
    - `price` string, nullable — Price of the article/part. Is either gross or net, depending on the sevdesk account setting.
    - `priceNet` string, nullable — Net price of the part
    - `priceTax` string, nullable — Tax on the price of the part
    - `priceGross` string, nullable — Gross price of the part
    - `name` string, nullable — Name of the article/part.
    - `unity` object — The unit in which the positions part is measured
      - `id` string, required — Unique identifier of the unit
      - `objectName` string, required — Model name, which is 'Unity'
    - `sevClient` object — Client to which order position belongs. Will be filled automatically
      - `id` string, required — Unique identifier of the client
      - `objectName` string, required — Model name, which is 'SevClient'
    - `positionNumber` string, nullable — Position number of your position. Can be used to order multiple positions.
    - `text` string, nullable — A text describing your position.
    - `discount` string, nullable — An optional discount of the position.
    - `optional` boolean, nullable — Defines if the position is optional.
    - `taxRate` string — Tax rate of the position.
    - `sumDiscount` string, nullable — Discount sum of the position

## Other responses

- `400` — Bad request. order was not found
- `401` — Authentication required
- `500` — Server Error

---

[API](https://skmtc.net/sevdesk/apis/sevdesk-api.md) · [All operations](https://skmtc.net/sevdesk/apis/sevdesk-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sevdesk/sevdesk-api/revisions/a32cec0fecea/schema)
