Skip to content
All projects

An EDI and API integration platform for a logistics operator's customers

Project write-up

The client is described by industry and scale, without a name. KPI figures are targets agreed with the client after a baseline measurement.

In brief

Problem
Every customer integrates differently (EDI, files, API), and a new integration takes weeks.
Approach
One integration platform with adapters for EDIFACT, files, and APIs, a canonical order model, and validation at the entry point.
Goal
Lost or duplicated messages: 0 in resilience tests; Time from change approval to production (DORA metrics): < 1 day.

Client context

Logistics operators integrate with dozens of customers, carriers, and platforms, and the number of interfaces grows faster than the team that maintains them. The client is a logistics operator running contract warehouses and transport for several dozen retail and manufacturing customers.

Challenge

Every customer integrates differently (EDI, files, API), and a new integration takes weeks. Errors in advance shipping notices and orders are detected at the dock.

Requirements and constraints

  • GDPR, i.e. Regulation (EU) 2016/679, requires data minimization, a legal basis for processing, processing agreements, and, for high-risk processing, a data protection impact assessment (DPIA). In practice it rules out copying production data into test environments without anonymization or pseudonymization. (source)
  • KSeF (Poland's National e-Invoicing System) introduces mandatory structured invoices in the FA(3) format. Finance and accounting systems must handle sending, receiving, fallback modes, and KSeF numbers throughout the document flow. (source)
  • NIS2, i.e. Directive (EU) 2022/2555, and the amendment to the Polish National Cybersecurity System Act (KSC) require essential and important entities to implement cybersecurity risk management measures and supply chain security, and to report incidents within short deadlines (an early warning within 24 hours). Management is personally liable, so documentation of decisions is part of the product. (source)
  • Project constraints: work only on anonymized or synthetic data outside production, access to systems through the client's infrastructure, and every deliverable shipped with documentation the client's team can take over.

Approach and architecture

We use the strangler fig pattern: new APIs gradually take over traffic from the old ESB, and an anti-corruption layer translates the old data model into the new one. This way the migration happens piece by piece, with no big bang, and every step is reversible. Contract tests (consumer-driven) make sure a change on one side does not break the other.

One integration platform with adapters for EDIFACT, files, and APIs, a canonical order model, and validation at the entry point. Onboarding a new customer is a matter of configuring a mapping, not a new project.

Key elements of the solution:

  • A canonical order and advance shipping notice model
  • EDIFACT, CSV, and API adapters
  • Validation at the entry point with feedback to the customer
  • Per-customer flow monitoring

Team and roles

RoleCountResponsibility
Solution architect1target architecture, ADR decisions, technical reviews
Integration engineer3API contracts, Kafka, ESB, contract tests
Test analyst (ISTQB)1designing and executing test cases, reporting defects
Product owner and domain experts (client side)as neededpriorities, business decisions, acceptance

Phased schedule

PhaseWeeksDeliverable
1. Integration inventory1–4flow map, interface catalog
2. Contract and platform design5–9API specifications, schema registry
3. Build and incremental migration10–19new interfaces, traffic switchovers
4. Contract and resilience testing20–23contract tests, failure scenarios
5. Retiring old connections24–24decommissioning plan, documentation

Technology stack

Apache Camel or MuleSoft, Kafka, PostgreSQL, Grafana.

Risks and how we mitigate them

RiskHow we mitigate it
A large number of integrations with unclear ownersan integration catalog with owners, contract tests, prioritization by criticality
Dependence on an external vendor and its deadlinesearly agreement on API contracts, a stub environment, a weekly dependency review
Message loss or duplication when switching flowstransactional outbox, idempotent consumers, daily reconciliation of events against the source

Measurable goals and KPIs

The values below are targets that we set with the client after a baseline measurement in the first phase.

KPITargetHow it is measured
Lost or duplicated messages0 in resilience testschaos tests, event reconciliation
Time from change approval to production (DORA metrics)< 1 dayrepository and pipeline data
Share of records meeting quality rules≥ 98% in critical tablesdata quality tests

Lessons learned and good practices

Validation at the entry point moves errors from the dock to the moment the order is sent. A canonical data model reduces customer onboarding to configuration. Idempotency on the consumer side is cheaper than an exactly-once delivery guarantee.

Why B2B.net

We combine two models: we provide individual specialists and entire teams (time and materials, team leasing), and when a client prefers to hand over responsibility for the outcome, we work at a fixed price for a defined scope. We have access to a large network of engineers in six cities, SAP Center of Expertise competencies, and experience with ISO 27001, DORA, and NIS2 requirements. If someone leaves the team, a replacement is in place within 5 business days.

Acceptance criteria

Each phase ends with formal acceptance against criteria agreed at the start. In this engagement, acceptance covers: flow map, interface catalog; API specifications, schema registry; new interfaces, traffic switchovers; contract tests, failure scenarios; decommissioning plan, documentation. Final acceptance requires a KPI measurement report against the baseline, complete documentation handed over to the client's team, and a list of recommendations for the next stage, with a cost and risk assessment for each.

Next step

Want to see what such an implementation would look like in your organization? Book a 30-minute call. We will prepare a plan for the first six weeks and a team composition tailored to your system.

What would this look like for you?

Book a 30-minute call. We will prepare a plan for the first weeks and a team matched to your system.

Let's talk

B2Bnetwork · B2B.net S.A. · accredited exam center. We describe clients by industry and scale, without names.

More projects: Logistics