EDI Integration

CODECO EDIFACT Done Right

Generate, validate, and manage UN/EDIFACT CODECO messages in D95B and D00B formats. Per-liner configuration, automatic gate triggers, and full compliance with shipping line requirements.

Capabilities

Enterprise-Grade EDI Generation

Everything you need to handle CODECO messaging for any number of shipping lines, formats, and depot locations.

D95B & D00B Formats

Full support for both EDIFACT D95B and D00B directory versions. Choose per liner based on their requirements.

Per-Liner Configuration

Each shipping line gets its own sender ID, receiver ID, control reference scheme, and UNLOCODE mapping.

Automatic Gate Triggers

CODECO messages are generated automatically on gate-in and gate-out events. No manual intervention needed.

Bulk Generation

Generate CODECO for multiple containers at once. Ideal for batch gate operations and end-of-day EDI runs.

Secure Cloud Storage

All generated EDI files are stored securely in the cloud with organized naming, controlled access, and configurable retention.

Validation Engine

Built-in EDIFACT syntax validation ensures every message conforms to UN/EDIFACT standards before storage or transmission.

How It Works

From Gate Event to EDI File

DepotLite automates the entire CODECO generation pipeline — from the moment a container crosses the gate to a valid EDI file stored securely in the cloud.

Gate Event
Liner Config
NestJS Generator
Validation
Cloud Storage
Notification
Per-Liner Configuration

Every Liner, Their Way

Each shipping line has unique EDI requirements — different sender qualifiers, receiver IDs, control reference formats, and UNLOCODE mappings. DepotLite stores per-liner configurations so every CODECO message meets the exact specification.

Sender ID and qualifier per liner
Receiver ID and qualifier per liner
Auto-increment or custom control reference scheme
UNLOCODE mapping for multi-depot operations
Configurable gate-in and gate-out triggers
Format selection: D95B or D00B per liner
edi-config.json
{
  "linerId": "MAERSK",
  "format": "D95B",
  "sender": {
    "id": "DEPOTLITE",
    "qualifier": "ZZZ"
  },
  "receiver": {
    "id": "MAABORNCG",
    "qualifier": "14"
  },
  "controlRef": "AUTO_INCREMENT",
  "unlocode": "INMAA",
  "triggerOn": ["GATE_IN", "GATE_OUT"],
  "blobContainer": "edi-codeco",
  "autoGenerate": true
}
EDIFACT Structure

Key CODECO Segments

DepotLite handles every segment of the CODECO message structure, from interchange headers to equipment details and damage codes.

SegmentNamePurpose
UNBInterchange HeaderSender/receiver IDs, date/time, control reference
UNHMessage HeaderMessage reference, message type (CODECO), directory version
BGMBeginning of MessageDocument type (gate-in: 34, gate-out: 36)
TDTTransport DetailsVessel name, voyage, carrier identification
LOCLocationDepot UNLOCODE, berth, yard position
EQDEquipment DetailsContainer number, size/type, full/empty status
RFFReferenceBooking reference, BL number, release reference
DAMDamageDamage location, type, and severity codes
UNTMessage TrailerSegment count and message reference
UNZInterchange TrailerMessage count and interchange control reference
API Reference

EDI Capabilities

Full control over EDI generation, parsing, and configuration through the platform.

POST/api/edi/generateGenerate a CODECO message for a single journey
POST/api/edi/generate/bulkBulk generate CODECO messages for multiple containers
POST/api/edi/parseParse an incoming EDIFACT message into structured JSON
POST/api/edi/validateValidate an EDIFACT message against D95B/D00B schemas
GET/api/edi/config/:linerIdRetrieve EDI configuration for a specific liner
PUT/api/edi/config/:linerIdUpdate EDI configuration for a liner

Stop Building EDI from Scratch

DepotLite handles the complexity of CODECO EDIFACT so you can focus on running your depot. Configure once per liner, generate automatically forever.