Trade finance document discrepancy testing checks whether a trade finance system identifies and handles differences between presented documents and the terms of a transaction. It verifies that required documents and fields are assessed against configured rules, and that detected discrepancies are recorded and routed through the expected review workflow.
What the testing covers
A common context is documentary credit processing, where a bank examines documents presented under a letter of credit (LC). The system may validate document presence, extract field values and compare them with transaction terms or with values in other documents. Applicable rules, the credit wording and bank procedures determine which differences count as discrepancies.
Test coverage can include missing or duplicate documents; mismatched amounts, currencies, dates, party names, goods descriptions or quantities; and inconsistencies in shipment details or document references. It should also cover permitted tolerances and formatting differences. A variation in punctuation or an accepted abbreviation may be harmless under configured rules, while a different currency may be material.
The checks can involve several components: document ingestion, optical character recognition (OCR) or manual data entry, field normalisation, comparison rules, case management and audit logging. Testing should establish whether each component passes accurate values downstream and whether the final discrepancy record explains the relevant document, field and expected value.
Preconditions and failure modes
Tests need a controlled transaction setup: the instrument terms, required document list, applicable rule configuration and known-good sample documents. Where extraction is in scope, include both machine-readable and poor-quality inputs. Keep expected outcomes explicit, since the same difference may be treated differently under different terms or bank policies.
Failures can occur when a value is extracted incorrectly, a comparison uses the wrong source field, a tolerance is applied too broadly, or a missing document is overlooked. Normalisation can also hide a meaningful difference, such as treating distinct dates or currencies as equivalent. At the workflow level, a discrepancy may be detected correctly but attached to the wrong case, omitted from the audit trail or sent to an unauthorised queue.
Document validation is therefore broader than checking that a file is readable or that extracted data matches a basic format. Discrepancy testing verifies the comparison with transaction-specific requirements and the resulting case behaviour. The system's finding should also be distinguished from the eventual business decision to accept, waive or reject a presentation, which may require authorised review.
Practical test example
Assume an LC requires an invoice in EUR, and the presented invoice states USD. Create a case with the LC terms and invoice, then verify that the system extracts both currencies, compares the invoice with the LC, records a currency discrepancy with the correct source values, and routes the case according to configured policy. Check the audit record and user-facing case details as well as the comparison result.
Add a control case with the same invoice amount and the required EUR currency. It should not produce a currency discrepancy. Then vary one condition at a time, such as changing the invoice currency or supplying no invoice, so the test reveals whether the comparison rule and missing-document handling work independently. These are examples of negative testing: each input deliberately violates or approaches a transaction condition, and the expected outcome is defined before execution.
How to verify outcomes
Assert the extracted data separately from the discrepancy decision. This helps distinguish an OCR defect from a comparison-rule defect. Verify the discrepancy code or description, source document, expected and presented values, case status, routing, permissions and audit events. For automated tests, use stable document fixtures and controlled rule configurations; otherwise, changes to test data or environment settings can make results hard to reproduce.
Include regression checks when rules, extraction models, document templates or workflow configuration change. Review both positive and negative cases: a valid presentation should not be flagged without cause, and a material mismatch should not pass silently. Link coverage to the relevant transaction terms and configured rules so reviewers can trace each expected result to its source.
Frequently asked questions
Can trade finance document discrepancy testing be fully automated?
Some checks can be automated, including required-document checks, field comparisons and workflow assertions. Human review may still be needed for ambiguous wording, image interpretation or decisions that depend on bank policy.
How should test teams handle changes to documentary rules?
Version the rule configuration used by each test and retain its expected outcomes. When rules change, review affected cases, update traceability and run regression tests for both discrepancies that should be raised and valid presentations that should pass.
What is the difference between a discrepancy and an extraction error?
An extraction error occurs when the system reads or captures a document value incorrectly. A discrepancy is a comparison finding that a presented value or document fails a transaction requirement; an extraction error can cause a false finding or conceal a real one.
