ROTRA
This document outlines the integration details for ROTRA using Fortras BORD512 EDI format.
Overview
ROTRA is a logistics service provider offering comprehensive road transport and distribution services. This integration enables automated shipment processing through EDI file transmission via SFTP.
Integration Architecture
- EDI Format: BORD512 (Fortras standard)
- Transmission: SFTP upload
- File Format: Fixed-width text file
- Environment: Production and Playground supported
Booking
The booking is done by generating and uploading a BORD512 EDI file to ROTRA via SFTP. No direct API communication is required.
Reference Handling
- The AWB/tracking reference is provided in the input data
- The shipment tracking reference uses the first 30 characters of the provided reference
- Each handling unit tracking reference uses:
- The
requestedTrackingReferencefrom the handling unit if provided - Otherwise falls back to the handling unit’s
referencefield
- The
EDI File Structure
BORD512 Format
The EDI file contains multiple fixed-width record types:
| Record Type | Description |
|---|---|
| @@PH | Header record |
| A00 | Consignment data head record |
| B00 | Address records (shipper and consignee) |
| D00 | Package/handling unit records (one per package) |
| G00 | Consignment sums |
| H00 | Text codes and references |
| J00 | Consignment data totals |
| Z00 | Control record |
| @@PT | Trailer record |
File Naming Convention
Files are named using the pattern: {prefix}{timestamp}.for
- Prefix: Configurable in integration settings (e.g.,
152_ROT_) - Timestamp: YYYYMMDDHHMMSS format
- Extension:
.for
Example: 152_ROT_20260121143000.for
Configuration
SFTP Connections
Two SFTP connection references must be configured:
- Production: Used when
useProductionis true - Playground: Used for testing
Onboarding Credentials
Located in separate folder at carriers/v2/rotra/fortras/onboarding/:
- Customer Code (ROT_CUSTOMER): ROTRA customer identifier (max 35 characters)
- Depot Code (ROT_DEPOT): ROTRA depot identifier (max 35 characters)
Optional Settings
- File Name Prefix: Custom prefix for generated EDI files
- Default Incoterm: Fallback incoterm if not provided in shipment data
Implemented Code Mappings
Package Type Codes (D00 Record)
Mapped using the getPackagingCode() function:
| Input Type | ROTRA Code | Description |
|---|---|---|
| 200PALLET | EP | 200cm pallet |
| EUROPALLET | FP | Euro pallet |
| 60PALLET | HP | 60cm half pallet |
| HALFPALLET | HP | Half pallet |
| PALLET | IP | Industrial pallet |
| COLLI | KS | Collo (default) |
| CARTON | KT | Carton |
| ENVELOPE | KU | Envelope |
| QRTRPALLET | VP | Quarter pallet |
Delivery Condition Codes (G00 Record)
Mapped using the getDeliveryConditionCode() function:
| Incoterm | ROTRA Code |
|---|---|
| EXW | 70 |
| FCA | 72 |
| CPT | 73 |
| CIP | 74 |
| DDU | 84 |
| DDP | 85 |
| CIF | 87 |
| CFR | 88 |
| FAS | 90 |
| FOB | 11 |
Weight Handling
- Input weights are converted to kilograms if provided in pounds (lbr)
- D00 Records: Individual package weights in grams (integer)
- G00/J00 Records: Total weights in kilograms (integer)