Skip to main content

Overview

DHL Express delivers invoices as CSVs with a two-level structure: I (invoice) rows carry billing account metadata, and S (shipment) rows are the actual line items. Charges live in numbered XC1XC9 column groups — each group holds one charge code, label, amount, tax, discount, and total. DHL Express CSVs have 153 columns and up to 9 concurrent charges per shipment.

Shape notes

  • Line Type markers. The first column is Line Type: I for invoice-level rows, S for shipment rows. Only S rows become line items in the Trackstar API; billing account is carried forward from the preceding I row when an S row leaves Billing Account blank.
  • Dates are YYYYMMDD. Invoice and shipment dates use 8-digit format with no separators — e.g., 20260331 for 31 March 2026.
  • Charges come from XC columns. Each of XC1XC9 has 7 associated columns (Code, Name, Charge, Tax Code, Tax, Discount, Total). Any XC slot with a populated Name and non-zero Charge becomes a Trackstar line item.
  • European number format is tolerated. DHL Express in some regions delivers amounts like 5.476,48 (period as thousands separator, comma as decimal). Trackstar handles both formats automatically.
  • Customs CSVs use XC10 and XC11. Express (shipment) CSVs only use XC1–XC9; customs CSVs extend to XC11.

Sample rows

Curated subset showing the Line Type/XC structure. The downloadable CSV has all 153 columns.

Download

Download full sample CSV (1 I row + 15 S rows, 153 columns)
All sample data is synthetic. Tracking numbers, account numbers, addresses, and reference fields are fabricated and do not correspond to any real shipments or customers.

Fields

Invoice identification

Billing address

Shipment

Origin and destination

Contents and dimensions

Invoice totals

Core charges

Extra charges (XC1–XC9)

Each XC slot has 7 columns: Code, Name, Charge, Tax Code, Tax, Discount, Total. Any slot with a populated Name and non-zero Charge becomes a Trackstar line item. XC slots are dense, not sparse — if only 2 charges apply, they occupy XC1 and XC2, leaving XC3–XC9 empty. Common XC charge names include:
  • Fuel Surcharge
  • Oversize Piece
  • Remote Area Delivery
  • Address Correction
  • Duties & Taxes Advanced
  • Premium 10:30 / Premium 9:00
  • Saturday Delivery