Document Statuses
What each document status means and how documents move through the processing pipeline.
Every document in CargoLint has a status that tells you exactly where it is in the processing pipeline. Statuses update automatically as the document moves from upload through extraction, review, and completion.
Status reference
● Uploaded
The document has been received and is queued for processing. This is the initial state immediately after upload. No extraction has started yet - the document is waiting to be sent to the AI service.
You don’t need to do anything. Processing begins automatically within a few seconds. If the document could not be queued, it stays Uploaded and is queued again after two minutes.
● Processing
The AI extraction service is actively working on the document: reading its text, classifying its kind, extracting every field and rating how clearly it read each one. How long this takes depends mostly on the number of pages.
You’ll see this status after every upload. It also covers short upstream holds - every fresh upload passes a brief safety scan before extraction begins - so a document can display as Processing for a few minutes. If a document is still parked after 5 minutes, its status changes to Waiting for AI - check the troubleshooting guide if that happens often. A run that never finishes is noticed too: a document still Processing 30 minutes after it was sent for reading is handed to the retry worker, and shows Waiting for AI 5 minutes after that if it has still not been read.
● Pending Approval
Extraction is complete, nothing needs explicit confirmation (no HS codes waiting to be confirmed, no scan-quality concerns), and the document carries at most one warning: its Quality score is 100% or 90%, so it is never red here. The document is ready for you to review and approve, but it doesn’t require urgent attention.
These documents appear in your review queue. You can approve them as-is, make corrections to specific fields, or skip them to review later.
● Review
The document needs your attention before it can be finalized. A document lands here when something needs a reviewer:
-
Problems that add up - one problem that needs fixing, or two warnings, from any source: how the document was read (a value that cannot be found in the document’s text, a value the AI is guessing), the document checks (a required field it lacks, totals that do not add up, a destination requirement), or the HS codes. That is a Quality score below 90%. Reading problems send the document here as soon as it is read; the rest once its checks have run
-
HS codes to confirm - suggested codes are never applied automatically; a line item without a confirmed code holds the document here
-
Degraded scan - the scan quality was too low for reliable reading
-
Blocking check finding - the document checks found a sanctions match or a CITES Appendix I species, or a check could not complete (see Checks pending)
-
Shipment finding - a shipment consistency check found conflicting information between this document and another in the same shipment
-
A document CargoLint made - a generated packing list or a cloned document waits for its first review
A document with a high score can still sit here, for example while a person confirms its HS codes. The Documents list, Document Details and the review editor show why a document is held, and the Document Issues panel lists every problem.
Tip: Documents in this status are highlighted in your review queue so they’re easy to spot and prioritize.
● Waiting for AI
The document has been parked for more than 5 minutes waiting on an upstream service - usually a transient AI service outage, a rate limit, or a delayed scan verdict. The document is safe and a background retry worker will requeue it automatically as soon as the service recovers. No action is required from you.
Brief holds are a normal part of processing and display as Processing; a document only shows Waiting for AI once it has been parked past the 5 minute mark. The mark counts from the first time it was parked: while the retry worker sends it for reading again it keeps showing Waiting for AI, until a run finishes it.
If many documents are sitting in this state, you’ll also see a system-wide banner at the top of the app and on the status page. When the AI service recovers, documents transition back to Processing and continue through the normal pipeline.
● Recognized
CargoLint identified the document as a kind it recognizes but does not read yet, such as a purchase order, a customs declaration or a CITES permit (see Document Types). The document is kept with its kind as its title and counts as present in its shipment, but nothing in it is extracted or checked, so it is never reviewed or approved. A file whose kind cannot be told is kept the same way, as Unknown.
Recognized is a final status: there is nothing for you to do on the document itself.
● Split
The upload was one PDF holding several documents, and CargoLint split it into them. Each document is processed as its own upload, in the same shipment and batch, and its file name carries its page range (“docs-pack (pages 3-4).pdf”). The pack itself holds no fields and is detached from the shipment, so only its documents take part in the checks.
Split is a final status.
● Completed
A reviewer has approved this document. A person has signed off what CargoLint read, and the data is ready for export.
Completed documents can be exported as a corrected PDF or a downloadable audit packet (a ZIP containing the extracted fields as JSON, your corrections, and the compliance report), used to generate related documents (like a packing list from an invoice), or sent to your customs system via the API or webhooks.
● Skipped
A reviewer chose to defer this document for later. It’s been set aside but not finalized, and it leaves the review queue: find it with the Skipped status filter on the Documents page and pick it up with Resume Review on its detail page. An email attachment that matches no document kind is also marked Skipped, and the intake reply tells the sender.
Skipping is useful when you need more information before you can review (waiting for a corrected scan, confirming an HS code with a colleague, etc.) or when you’re triaging a batch and want to focus on higher-priority documents first.
● Failed
The extraction service was unable to process this document. This could happen if the file is corrupted, the format is unsupported, the page is blank or too poor for any text recognition, the document is in a language other than English, a PDF holds several documents that CargoLint could not split cleanly, or an unexpected error occurred during processing. A non-English document fails with the detected language named.
The document’s page says why it failed and offers what may help: a clearer scan, a large pack uploaded in parts, each document uploaded as its own file, or a re-run. Check that the file is a valid PDF, PNG, JPG, or TIFF under 20 MB and that the scan is legible. If the problem persists, check the troubleshooting guide or contact support.
Checks pending
A document can show Checks pending under its name in the Documents list. It is not a status. The document has been read and scored, but its document checks (sanctions screening, required fields, totals and the rest) have not run yet. They usually run within a minute; after a large batch upload, it can take a few minutes for every document to be checked.
The document page runs the checks when you open it, so it always shows current findings.
When the checks run, a document in Pending Approval moves to Review if they find a sanctions match or a CITES Appendix I species, or if a check could not complete. Other findings appear in the compliance panel without changing the status.
How documents flow through statuses
The typical lifecycle follows a linear path:
Uploaded → Processing → Pending Approval or Review → Completed
The branch after Processing depends on what the reading found and on what needs explicit confirmation. Documents whose reading raised nothing for a reviewer, with nothing to confirm, go to Pending Approval; documents with reading problems, HS codes to confirm or a degraded scan go to Review. Both paths lead to Completed once a reviewer approves - a clean document never skips the human sign-off.
Other paths exist: a document of a kind CargoLint does not read ends as Recognized, a PDF holding several documents ends as Split once its documents are created, a reviewer can Skip a document to defer it, and a document can be reprocessed (which sends a Completed document back to Processing for a fresh extraction). An email attachment that matches no document kind is skipped automatically.
Status transitions at a glance
| From | To | Trigger |
|---|---|---|
| Uploaded | Processing | Automatic - begins within seconds of upload |
| Uploaded | Waiting for AI | The document could not be queued; after two minutes the retry worker queues it again |
| Processing | Pending Approval | Extraction completes with no reading problem for a reviewer and nothing to confirm |
| Processing | Review | Extraction completes with reading problems (one that needs fixing, or two warnings), HS codes to confirm, or a degraded scan |
| Pending Approval | Review | The document checks find a sanctions match or a CITES Appendix I species, or a check could not complete |
| Pending Approval | Review | A shipment consistency check finds conflicting information |
| Completed | Review | A shipment consistency check finds an error-level conflict in an approved document |
| Processing | Waiting for AI | An upstream outage or scan delay keeps the document parked for more than 5 minutes, or a run has not finished 30 minutes after the document was sent - retry worker takes over |
| Waiting for AI | Processing | AI service recovers and the document is requeued |
| Processing | Recognized | The document is a kind CargoLint recognizes but does not read |
| Processing | Split | The PDF holds several documents and is split into them |
| Processing | Failed | Extraction encounters an unrecoverable error |
| Pending Approval | Completed | Reviewer approves (with or without corrections) |
| Review | Completed | Reviewer approves (with or without corrections) |
| Pending Approval | Skipped | Reviewer defers the document |
| Review | Skipped | Reviewer defers the document |
| Completed | Processing | Document is reprocessed (re-extraction triggered) |
Filtering by status
On the Documents page, you can filter the list by status to focus on what needs attention. The filter bar shows counts for each status so you can see at a glance how many documents are waiting for review, how many have been completed, and whether any have failed.
The review queue automatically surfaces Pending Approval and Review documents, with Review items highlighted for priority handling.
Webhooks and status changes
If you’ve configured webhooks, CargoLint fires events on key status transitions - including document.pending_approval and document.requires_review after extraction, document.recognized when a document of a kind CargoLint does not read is kept, document.split when a pack is split (with its documents and their page ranges), document.failed when extraction cannot complete, document.reviewed and document.completed once a reviewer finishes, and document.skipped when a document is deferred. See the webhook setup guide for the full event list and payloads.
What’s next
- Reviewing documents - the full review workflow for Pending Approval and Review documents
- How the Quality score works - the score, its colours and what sends a document to Review
- Uploading documents - best practices for uploads that read cleanly