---
title: "Worklist of orders with a failing check"
method: GET
path: "/v1/customs-declaration/issues"
tags: ["Customs Declaration"]
---

# Worklist of orders with a failing check

`GET /v1/customs-declaration/issues`

## Request

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

The orders of a pipeline that are not ready, each with the checks that failed and the fields concerned, and the scored fields whose extracted value differs from the filed declaration or is missing. When `pipeline_id` is omitted, the pipeline is chosen as for `GET /v1/customs-declaration/declarations`. The worklist is built from at most `customs_declaration.max_records` orders: `read` says how many were read, `available` how many the pipeline holds for the key, and `truncated` is true when orders past the cap were not checked.

## Query parameters

- `pipeline_id` string, uuid

## Response `200`

Orders to review.

- CustomsDeclarationIssueList
  - `pipeline` object
    - `id` string, uuid
    - `name` string
    - `status` string
  - `read` integer: Orders read and checked.
  - `available` integer: Orders the pipeline holds for the key; more than `read` only past the cap.
  - `truncated` boolean: True when `read` < `available`: orders past the cap are not in the worklist.
  - `data` object[]
    - `lrn` string
    - `record_document_id` string
    - `sender` string, nullable
    - `receiver` string, nullable
    - `checks` object[]: The failed checks.
      - `id` string
      - `message` string, nullable
      - `fields` string[]
    - `differs` string[]: Field keys of scored rows whose state is `mismatch` or `missing`.

## Other responses

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

## Changes

- **2026-11-05** `31da86449c3c`: 3 info
  - added the optional property `available` to the response with the `200` status
  - added the optional property `read` to the response with the `200` status
  - added the optional property `truncated` to the response with the `200` status
- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/customs-declaration/issues/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)
