---
title: "The tracing-compliance dashboard's documents per order"
method: GET
path: "/api/dashboard-analytics/tracing-documents/{companyId}"
tags: ["Dashboard Analytics/Tracing Documents"]
---

# The tracing-compliance dashboard's documents per order

`GET /api/dashboard-analytics/tracing-documents/{companyId}`

## 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/dashboard-analytics/tracing-documents/{companyId}`
- Auth: none declared

A page of the orders of the company's traces created between `startDate` and `endDate` (the past 30 days and today without both) that are missing a required document (`isMissing=true`) or missing none, with their product lines and the document types uploaded and missing. `filter` is a JSON-encoded `TracingDocumentsListFilter`; its lists, arrays or comma-separated strings, narrow the orders — ids and document types match exactly. `sort` is `<field>:ASC|DESC`, oldest first without it. Days are read in the `x-timezone` header's timezone (UTC without it). Only the company itself or Retraced staff may read it.

## Path parameters

- `companyId` string, required

## Query parameters

- `filter` string
- `isMissing` union
  - boolean
  - 'true' | 'false'
- `page` integer
- `count` integer
- `sort` string

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required: True when the request succeeded.
    - `pagination` object
      - `page` number, required: Current page number (1-based).
      - `limit` number, required: Page size used for this response. Endpoint defaults vary — see each endpoint's limit parameter.
      - `total` number, required: Total number of records across all pages.
      - `totalPages` number, required: Total number of pages. Iterate until page reaches totalPages.
  - `data` object[], required
    - `initialPurchaseOrderId` string, required
    - `initialNumberOrder` string, nullable, required
    - `purchaseOrderId` string, required
    - `orderNumber` string, nullable, required
    - `supplierName` string, nullable, required
    - `creationDate` string, nullable, required
    - `tracingOrderTags` string, nullable, required
    - `attachmentTemplate` string, nullable, required
    - `lines` object[], required
      - `id` string, required
      - `productId` string, required
      - `productName` string, nullable, required
      - `code` string, nullable, required
      - `quantity` number, nullable, required
      - `unit` string, nullable, required
    - `uploadedDocuments` string[], required
    - `missingDocuments` string[], required

## Other responses

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

## Changes

> 108 revisions in range; 2 not diffed.

- **2026-10-13** `b9cf8bef8ed3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/retraced/apis/api-reference/changes/api/dashboard-analytics/tracing-documents/:companyId/get.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)
