How to map NCTS LRN, MRN and transit status in a TMS
Use the Local Reference Number (LRN) to correlate the trader’s declaration with responses, and the Master Reference Number (MRN) to identify the accepted transit movement. An MRN does not by itself prove release or discharge.
Keep the trader’s reference and authority outcomes separate.
The Commission’s NCTS overview describes assignment of the MRN on acceptance. The Irish Revenue trader guide describes the LRN as a trader-allocated reference for a declaration. Keep the two identifiers with their origin and procedure type, and pin the response mapping to the interface used by your customs broker or administration.
A declaration is accepted but release is not yet confirmed.
In a synthetic shipment, the TMS sends a declaration with an LRN and receives the MRN. Record acceptance and retain the LRN for reconciliation. Leave the local release flag unconfirmed until the matching release response arrives. If the warehouse later confirms delivery, do not treat that event as customs discharge.
Test references and state transitions together.
- Test two declaration types attached to one shipment. Do not copy an export reference into the transit MRN field.
- If a response is delayed, reconcile the original declaration before deciding whether to resend.
- Keep arrival notification and discharge distinct. A late acceptance message must not undo a recorded release.