Back to Integrations
EDI Integration
Exchange demurrage invoices electronically with trading partners using EDI X12.
Supported Transaction Sets
| Code | Name | Direction | Purpose |
|---|---|---|---|
| 210 | Motor Carrier Freight Details and Invoice | Outbound | Send demurrage invoice |
| 214 | Transportation Carrier Shipment Status | Outbound | Status updates |
| 990 | Response to Load Tender | Inbound | Accept/reject |
| 997 | Functional Acknowledgment | Both | Confirm receipt |
Communication Methods
AS2
Applicability Statement 2
Encryption + SignaturesSFTP
Secure File Transfer
SSH KeysAPI
REST/SOAP endpoints
HTTPS + API KeysVAN
Value Added Network
Provider-managedSetup Instructions
1
Enable EDI Integration
- Navigate to Settings > Integrations
- Click Connect on the EDI card
- Configure your organization's EDI settings:
- EDI ID (your identifier)
- EDI Qualifier (ZZ, 01, etc.)
- Company Name
2
Add Trading Partners
- Go to Settings > Integrations > EDI
- Click Add Trading Partner
- Enter partner details:
- Partner Name
- EDI ID
- EDI Qualifier
- Communication Method
3
Configure Communication
For AS2:
- Exchange certificates with trading partner
- Configure Partner AS2 ID and URL
- Upload encryption and signing certificates
For SFTP:
- Get SFTP credentials from partner
- Configure host, port, username
- Add SSH key or password
- Set remote directory path
For API:
- Get API endpoint from partner
- Configure API URL and key
- Set required headers
4
Test Connection
- Click Test Connection on the trading partner
- Send a test 997 acknowledgment
- Verify partner receives it
Sending EDI 210 (Invoice)
When a demurrage record is approved:
- Demurly generates EDI 210 with:
- ISA/GS envelope with your IDs
- B3 segment with invoice details
- N9 segments with references
- LX/L5/L0/L1 segments with line items
- Totals in L3 segment
- Transmits via configured method
- Waits for 997 acknowledgment
EDI Format Reference
ISA Segment (Interchange Control Header)
ISA*00* *00* *ZZ*DEMURLYID *ZZ*PARTNERID *230115*1200*^*00401*000000001*1*P*:~ISA05
Sender ID Qualifier
ISA06
Sender ID (your EDI ID)
ISA15
P=Production, T=Test
B3 Segment (Beginning Segment)
B3**INV-2023-001**PP**20230115*1250.00~B302
Invoice Number
B307
Net Amount Due
L1 Segment (Rate and Charges)
L1*1*75.00*HR*150.00****DEM~L103
Rate Qualifier (HR=Hourly)
L108
DEM=Demurrage
Security
- All EDI transmissions encrypted (AS2/SFTP/HTTPS)
- Trading partner credentials encrypted at rest
- Full audit trail of all messages
- 7-year retention for compliance
997 Acknowledgment Rejected?
Check the AK5 segment error codes:
- Code 1: Segment missing - Check EDI mapping
- Code 2: Element missing - Verify required fields
- Code 3: Invalid value - Check data format
- Code 4: Invalid date - Use CCYYMMDD format