---
title: "Orders of a pipeline with comparison and checks"
method: GET
path: "/v1/customs-declaration/declarations"
tags: ["Customs Declaration"]
---

# Orders of a pipeline with comparison and checks

`GET /v1/customs-declaration/declarations`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/customs-declaration/declarations`
- Auth: HTTP bearer

Every order the pipeline assembled (one per LRN, highest LRN first), each compared field by field with the filed declaration and with the clerk's checks. When `pipeline_id` is omitted, the newest completed eligible pipeline is used, else the newest eligible one. Orders and documents are read as the key's minting user may see them under Sources IAM, and records held back for review are not included. `status` and `q` narrow the `items` only.

## Query parameters

- `pipeline_id` string, uuid
- `status` 'ready' | 'review'
- `q` string

## Response `200`

The orders.

- CustomsDeclarationList
  - `pipeline` object
    - `id` string, uuid
    - `name` string
    - `status` string
  - `stage` object
    - `id` string, uuid
    - `name` string
    - `reference_data_id` string, uuid
    - `reference_name` string, nullable
  - `data_product_id` string, uuid, nullable: The pipeline's data product, where its orders are reviewed.
  - `generated_at` string, date-time
  - `items` CustomsDeclaration[]
    - `lrn` string
    - `record_document_id` string
    - `record_id` string, nullable
    - `sender` string, nullable
    - `receiver` string, nullable
    - `route` string, nullable: Loading and delivery country codes joined with an arrow.
    - `procedure` string, nullable
    - `plates` string, nullable
    - `document_date` string, nullable
    - `declared_on` string, nullable: When the declaration was filed; null when no filed declaration matches.
    - `filed` boolean: True when a filed declaration matches the LRN.
    - `normalisation_log` string, nullable
    - `consignments` object[]: The order's consignment lines as assembled.
    - `documents` CustomsDeclarationDocument[]
      - `document_id` string, uuid
      - `filename` string, nullable
      - `lrn` string
      - `type` string, nullable: The document type.
      - `cmr_number` string, nullable
      - `total_gross_weight` string, nullable
      - `total_packages` string, nullable
    - `comparison` CustomsDeclarationComparisonRow[]
      - `field_key` string
      - `label` string
      - `ref_column` string: The column of the filed declaration it is compared with.
      - `extracted` unknown
      - `filed` unknown
      - `state` 'match' | 'partial' | 'mismatch' | 'missing' | 'no_reference' | 'empty' | 'info'
      - `note` string, nullable
      - `scored` boolean: False for rows shown for reference that never count as a difference.
      - `confidence` number, nullable
      - `cell_status` string, nullable
      - `source_document_id` string, nullable
      - `source_filename` string, nullable
      - `source_text` string, nullable: The text on the source document the value was read from, when located.
    - `checks` CustomsDeclarationCheck[]
      - `id` 'required' | 'tariff' | 'multi-cmr' | 'weight-agree' | 'packages-agree' | 'packages-fit' | 'weight-plausible'
      - `title` string
      - `status` 'pass' | 'fail' | 'na'
      - `message` string, nullable: Set when the check failed.
      - `fields` string[]: Field keys the check concerns.
      - `detail` string, nullable
    - `tally` object: Counts of the scored rows by state.
      - `match` integer
      - `partial` integer
      - `mismatch` integer
      - `missing` integer
    - `ready` boolean: True when no check failed.

## Other responses

- `400`: The request is invalid.
- `404`: The requested resource was not found.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/customs-declaration/declarations/get.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
