ediverse Explore the platform

Spotlight PEPPOL BIS Billing 3.0 The EU e-invoicing mandate is here — France Sept 2026, Belgium Jan 2026, Germany 2025.

X12 222 — Cartage Work Assignment

The 222 transmits a cartage work assignment to a local operator: pick-up and delivery in urban zones, last mile, port drayage.

Purpose

The 222 is used by long-haul carriers subcontracting local operations (cartage agents), or by freight forwarders contracting a drayage operator between a port and a nearby warehouse. It carries pick-up and delivery details, weight, pieces, special handling instructions, and the negotiated rate.

It is part of LTL (less-than-truckload) operations and port drayage. Acknowledged by 997; the operator confirmation flows through a 220 (Logistics Service Response) or a 214 (Shipment Status). Billing follows via 210.

Envelope structure

The 222 travels within the three X12 envelope levels (ISA/IEA, GS/GE with functional group CW, and ST/SE). Didactic example in release 004010:

x12 example-222.x12
ISA*00*          *00*          *ZZ*LONGHAULCO    *ZZ*CARTAGEAGT     *260514*0900*U*00401*000000222*0*P*>~
GS*CW*LONGHAULCO*CARTAGEAGT*20260514*0900*1*X*004010~
ST*222*0001~
B1*LONGHAULCO*CW-2026-0042*20260514*A~
N1*SH*ACME WAREHOUSE*92*WH-001~
N3*100 PIER WAY~
N4*OAKLAND*CA*94607*US~
N1*CN*RECEIVING DEALER*92*RC-002~
N3*200 SECOND ST~
N4*OAKLAND*CA*94612*US~
L0*1*4500*N*4*PCS~
AMT*ZZ*350.00~
SE*11*0001~
GE*1*1~
IEA*1*000000222~

Common segments

  • HeaderST, B1 (Action: A=Add, D=Delete, C=Change).
  • Pick-upN1*SH (Shipper), N3/N4 address, PER contact.
  • DeliveryN1*CN (Consignee), N3/N4, DTM window.
  • CargoL0 (Line Item — Quantity and Weight): weight, unit, piece count.
  • RateAMT*ZZ (negotiated drayage amount).
  • SummarySE.

Common pitfalls

  • Chassis split: in port drayage, the 222 must indicate if the chassis is provided by carrier, terminal, or IEP (Intermodal Equipment Provider); without precision, the drayage operator arrives without equipment and bills a dry run.
  • Hours of Service: drayage is often short but counted under FMCSA HoS; a 222 with a restrictive pickup window can force detention charged to the shipper.
  • Per-diem detention: a container held too long triggers per diem charged to the shipper; the 222 must plan the free time per the terminal contract.

Documentation

The code 222 and the name Cartage Work Assignment are public and listed on x12.org/products/transaction-sets. The complete structure of loops, qualifiers and code lists is distributed by DISA via the proprietary Implementation Guides (TR3). ediverse.io covers only public concepts, the envelope and didactic examples.