Get a Quote
Social Media

What is API integration used for in logistics?

Last updated:

Short Answer — API Integration

In logistics, API integration lets the systems of carriers, forwarders, customers and public authorities (customs, U-ETDS, e-documents) exchange information with each other in real time, under defined rules and without manual data entry. Orders, bookings, freight quotes, vehicle location, customs status and proof of delivery are entered once and flow automatically to every relevant system.

What is an API and what does it change in logistics?

An API (Application Programming Interface) is a set of rules through which one piece of software can request specific data from another, or send data to it, in a specific format. The data of a single shipment sits in at least four places: the customer's ERP, the forwarder's transport management system (TMS), the carrier's vehicle tracking software and public systems. Without an API, this data is carried by e-mail, spreadsheets and phone calls, and every transfer brings a risk of typing errors and delays. A single wrong letter in a container number can make the shipment disappear entirely from the tracking screen.

The difference between API and EDI

CriterionEDIAPI
Message structureStandard message sets (UN/EDIFACT, X12)Mostly REST and JSON; SOAP and XML in older systems
TimingUsually batch files at set intervalsInstant request-response or event-triggered notification (webhook)
Set-upLengthy mapping per trading partnerFaster, based on documentation
Typical useHigh-volume, established trading relationshipsPrice queries, tracking, booking, portals

The two methods are not rivals; large manufacturers often run both together. EDI is covered in detail in the what is EDI entry.

What is it used for?

  • Quotes and booking: Instant freight quotes and bookings based on dimensions and weights sent from the customer's system.
  • Tracking: Transferring vehicle location, estimated arrival and status events to the customer's screen; shipment tracking can also draw on this kind of data flow.
  • Documents: Automatically attaching the invoice, packing list, CMR and electronic proof of delivery to the relevant record.
  • Government reporting: Sending load information for domestic freight movements to the U-ETDS system via web service; transmitting e-invoices and e-waybills to the Revenue Administration (Gelir İdaresi) system through an integrator; and transferring customs declarations to the BİLGE system through the customs broker's software. This last step is the subject of the digital customs service.

How is an integration set up?

  1. Data dictionary: Map out which field is held by whom and in which format. Fields such as licence plate, container number, GTİP (Turkish HS/tariff code), country code and time zone are matched between the two parties.
  2. Authorisation: API keys, token-based methods such as OAuth 2.0 and IP restrictions are defined. For the U-ETDS web service, users are also defined through the Ministry's system.
  3. Test environment: Before going live, scenarios such as missing fields, wrong formats and timeouts are tested with sample shipments.
  4. Monitoring: Failed calls are logged, and retry rules and alerts are defined. A single message that silently disappears can mean a legal notification that was never made.

Security and personal data

Every API is a door opened to the outside. Encrypting traffic with TLS, giving each business partner access only to the data it needs, rotating keys regularly and retaining access logs are the basic safeguards. The driver's name and phone number and the vehicle's live location are personal data under the Personal Data Protection Law No. 6698 (KVKK); the purpose and duration of sharing must be defined. Threats and safeguards are covered further in the cybersecurity in logistics entry.

Common mistakes

  • Treating the integration as purely an IT project. The operations team knows what the fields really mean; "delivery date" can be the planned date in one system and the actual date in another.
  • Sending timestamps without a time zone. The time difference between Türkiye and Germany will show the wrong arrival time.
  • Not following the other party's version changes. A field name changed without notice can stop the entire flow.

Frequently Asked Questions

Does a small exporter need API integration?
For a company shipping a few loads a month, the forwarder's customer portal and e-mail notifications are often enough. Once shipment numbers grow, the same data starts being keyed manually into more than one system, or customers ask for tracking in their own systems, the cost of integration pays back quickly. As a first step, a simple connection that only receives tracking events can be set up.
What is a webhook and why is it used?
A webhook is an automatic message sent to an address defined by the other party when an event occurs. Instead of the customer's system asking "is there a new status?" every five minutes (polling), it receives the notification the moment the vehicle crosses the border. This reduces unnecessary query traffic and delivers information without delay; in return, the receiving side has to verify and store the message.
Who is responsible if data received via API is wrong?
As a rule, the party producing the data is responsible for its accuracy, and the receiving party for running its own checks. The integration agreement or partner agreement should set out in writing data ownership, the deadline for reporting errors, the correction method and the procedure to follow in case of an outage. Checking mandatory fields before sending catches most errors at source.

Published: 25.11.2026 · Voltim Global