Skip to main content
POST
/
v1
/
imports
/
contexts
/
{contextId}
/
extraction-reviews
/
{reviewId}
/
reject
Reject an AI extraction review (discard the candidates)
curl --request POST \
  --url https://matcher.sandbox.lerian.net/v1/imports/contexts/{contextId}/extraction-reviews/{reviewId}/reject \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "<string>"
}
'
{
  "candidates": [
    {
      "fields": [
        {
          "canonicalKey": "<string>",
          "confidence": 0.5,
          "page": 123,
          "value": "<string>",
          "region": "<string>"
        }
      ],
      "source": "<string>"
    }
  ],
  "contextId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdAt": "2023-11-07T05:31:56Z",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z",
  "version": 123,
  "ingestionJobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "rejectReason": "<string>",
  "reviewerId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication (format: "Bearer {token}")

Path Parameters

contextId
string<uuid>
required

Context ID

reviewId
string<uuid>
required

Review ID

Body

application/json
reason
string

Optional free-text reason for the rejection

Example:

"poor scan quality, re-upload"

Response

OK

candidates
object[] | null
required

Proposed transaction candidates awaiting review

contextId
string<uuid>
required

Reconciliation context the candidates belong to

Example:

"550e8400-e29b-41d4-a716-446655440000"

createdAt
string<date-time>
required

Creation timestamp (RFC 3339, UTC)

Example:

"2025-01-15T10:30:00Z"

id
string<uuid>
required

Review identifier

Example:

"550e8400-e29b-41d4-a716-446655440000"

sourceId
string<uuid>
required

Reconciliation source the candidates belong to

Example:

"550e8400-e29b-41d4-a716-446655440000"

status
string
required

Review lifecycle: PENDING_REVIEW (awaiting decision), APPROVED (candidates ingested), REJECTED (discarded)

Example:

"PENDING_REVIEW"

updatedAt
string<date-time>
required

Last-update timestamp (RFC 3339, UTC)

Example:

"2025-01-15T10:35:00Z"

version
integer<int64>
required

Optimistic-concurrency version, incremented on each state change

Example:

1

ingestionJobId
string<uuid>

Downstream ingestion job linked on approval; null until linked

Example:

"550e8400-e29b-41d4-a716-446655440000"

rejectReason
string

Free-text reason captured on rejection; empty otherwise

reviewerId
string

Principal id of the human who adjudicated the review; empty until decided