Skip to main content

Overview

DHL eCommerce delivers invoices as positional CSVs over SFTP. Each file contains one HDR row (invoice metadata) followed by many DTL rows — one per shipment. A single DTL row may carry values in multiple charge columns; each non-zero charge becomes a separate line item in the Trackstar API.

Shape notes

  • No header row. The raw CSV has no column names. Trackstar prepends the canonical 78-column schema when processing. The sample below includes that schema in the first row for readability.
  • Line type markers. Each row starts with either HDR (invoice-level) or DTL (shipment-level). Only DTL rows become line items.
  • Multiple charges per shipment. A shipment can populate Charge*, ZFuel*, special-handling surcharges, and taxes simultaneously. Each populated charge becomes one line item.
  • Totals reconciliation. The sum of all DTL charges equals the total in column 12 (Original Amount) of the HDR row — use this to verify invoice integrity.
  • Asterisked column names. Most column names end in * as delivered by DHL; preserved as-is.

Sample rows

Curated subset showing the most shape-informative columns. The downloadable CSV below is the raw DHL eCom format with 78 columns.
Sold_To*,PUDATE*,Internal_Tracking_Num:,Material_or_VAS_Desc*,ACTWeight*,Pricing_Zone*,Charge*,ZFuel*
2684030563,2026-03-31,0339600126,DHL SmartMail Parcel Expedited Max,0.71,4,8.50,0.52
2684030563,2026-03-26,5457796007,DHL SmartMail Parcel Plus Ground,3.23,5,7.69,0.48
2684030563,2026-03-02,2718798745,DHL SmartMail Parcel Expedited Max,2.62,3,6.79,0.41
2684030563,2026-03-14,3343983579,DHL SmartMail Parcel Expedited Max,1.18,5,6.94,0.43
2684030563,2026-03-20,8398375421,DHL SmartMail Parcel Plus Ground,2.05,2,5.38,0.33

Download

Download full sample CSV (1 HDR + 20 DTL rows, 78 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

Row markers

ColumnDescriptionExample
Invoice (index 0)Line type. HDR for invoice header, DTL for line itemsDTL
On HDR rows, column index 2 carries the invoice number and index 11 carries the total. On DTL rows, the remaining columns below apply.

Shipment identification

ColumnDescriptionExample
Sold_To*Account number2684030563
Inv_Posnr*Invoice line position10
BOL*Bill of Lading001122334455
BillRef* / BillRef2*Customer billing referencesREF-00001
SHIPPOINT*Origin facility codeUSIND1
PickUpFrom*Pickup facilityUSIND1
PUDATE*Pickup date (YYYY-MM-DD)2026-03-14
PUTIME*Pickup time09:15:00
Internal_Tracking_Num:DHL-assigned tracking number3343983579
Customer_Confirm*Customer’s confirmation number3343983579
Delivery_Confirm*Delivery confirmation number

Receiver address

ColumnDescription
Name*Recipient name
Address1* / Address2*Street address
City*City
State*State
Zip*Postal code
Country*ISO country code

Service and weight

ColumnDescriptionExample
Material_or_VAS_Num*Material or VAS codeSMP1
Material_or_VAS_Desc*Service descriptionDHL SmartMail Parcel Expedited Max
ACTWeight*Actual weight1.18
UOM_ACTWeight*Weight unitLB
BILLWEIGHT*Billed weight1.18
UOM_BillWgt*Billed weight unitLB
Quantity*Package count1
UOM_Quantity*Quantity unitEA
Pricing_Zone*DHL zone3
DIM_Weight, DIM_Length, Dim_width, DIM_height, UOM DIM_WT, UOM_DimsDimensional weight fields

Charges — base

ColumnDescription
Charge*Base freight charge
ZFuel*Fuel surcharge
Min_PickupChg*Minimum pickup charge
CustRef* / CustRef2*Customer-supplied refs

Charges — special service (ZZWS)

Fields ZZWS1PRI_Dropoff* through ZZWS9PRI_NEW* carry special-service charges (dropoff, sort, stamp, machine, manifest, BPM, and reserved slots).

Charges — surcharges (ZSC)

ColumnDescription
ZSC1_Content_Endorsement*Content endorsement fee
ZSC2_Unassignable_Addrs*Unassignable address fee
ZSC3_Special_Handling*Special handling fee
ZSC4_Late_Arrival*Late arrival fee
ZSC5_USPS_Qualif*USPS qualification fee
ZSC6_Client_SRD*Client-specific rate decision fee
ZSC7_SC_Irreg*Surcharge irregularity fee

Charges — returns and taxes (ZRM)

ColumnDescription
ZRM1_Ret_Unassn_Chg*Unassignable return charge
ZRM2_Ret_Unprocess_Chg*Unprocessable return charge
ZRM3_Ret_Recall_Disc_Chg*Recall discount return charge
ZRM4_Ret_Dup_Mail_Chg*Duplicate mail return charge
ZRM5_Ret_Cont_Assur_Chg*Contract assurance return charge
ZRM6_Move_Update_Return*Move update return
ZRM7_GST_Tax / ZRM8_HST_Tax / ZRM9_PST_TaxCanadian taxes
ZRM10_VAT_TaxVAT
ZRM11_DutiesDuties
ZRM12_TaxOther tax
ZRM13_Paper_Invoice_Fee*Paper invoice fee
ZRM14_Screening_Fee*Screening fee
ZRM15_Non_Auto-FlatsNon-auto flats charge
ZRM16_ORM_DORM-D hazardous fee

Reserved

ColumnDescription
Reserved_Future_Use_16Reserved for future DHL use; always empty today
Original DelConOriginal delivery confirmation