Load Tender EDI - JSON Specification

Summary

The EDI-flavored JSON for an EDI 204 (Motor Carrier Load Tender), used as the Chain.io source file type "chainioEDIJSONLoadTender". This is an INPUT format: an EDI translator converts an inbound 204 into this JSON, which Chain.io then maps to its canonical documents. Reference qualifiers and stop structures follow X12 conventions (L11 reference qualifiers, S5 stops); segment references below are logical correspondence. Exactly one file is expected and the top-level "shipment" object is required.
NameDescription
RootThe top level document.
ShipmentA single load tender.
NoteA free-text note.
PartyA named party with an address.
AddressA postal address.
ReferenceNumberA coded reference number (X12 L11).
TransportationStopA single stop in the load tender (X12 S5 loop).
OrderDetailsOrder-level detail carried on a stop.
OrderLineA single order line within a stop's order details.
AppointmentWindowAn appointment window bound.
StopLocationThe address and role of a stop.
NameData TypeDescriptionRequired
shipmentShipmentThe load-tender shipment object.YES
NameData TypeDescriptionRequired
action_typeStringThe tender action, e.g. "create".
booking_referenceStringThe booking / tender reference.
carrier_instructionsStringFree-text carrier instructions.
consigneePartyThe consignee (destination) party.
consignorPartyThe consignor (origin) party.
forwarder_controlling_branch_codeStringThe controlling forwarder branch.
forwarders_shipper_idStringAccepted but ignored on input: the value used is the adapter configuration's customer number.
freight_payment_termsStringPayment terms. PP = prepaid, CC = collect.
fuel_surcharge_dueNumberFuel surcharge amount. Copied unchanged (no cents conversion) into the invoice surcharge amount.
linehaul_dueNumberLine-haul charge. Copied unchanged (no cents conversion) into the invoice subtotal.
notesArray<Note>Header-level notes.
reference_numbersArray<ReferenceNumber>Header reference numbers (X12 L11).
shipper_referenceStringThe shipper reference.
total_dueIntegerTotal charge in CENTS. Converted to dollars on the resulting invoice. A falsy value means no invoice is produced.
transportation_stopsArray<TransportationStop>Ordered stops (X12 S5 loop).
NameData TypeDescriptionRequired
bodyStringThe note text.
qualifierStringA note qualifier. Accepted but not mapped.
NameData TypeDescriptionRequired
addressAddressThe party address.
nameStringThe party name.
NameData TypeDescriptionRequired
address_1StringAddress line 1.
address_2StringAddress line 2.
cityStringCity.
countryStringCountry code.
nameStringThe name at the address.
postal_codeStringPostal / ZIP code.
stateStringState / province.
NameData TypeDescriptionRequired
qualifierStringThe X12 reference qualifier (L1103), e.g. BM, MB, DCO, TTL, SW.
valueStringThe reference value (L1102).
NameData TypeDescriptionRequired
appointment_window_endAppointmentWindowThe appointment window close.
appointment_window_startAppointmentWindowThe appointment window open.
bill_of_ladingStringThe bill of lading number.
carrier_referenceStringThe carrier reference.
contact_emailStringStop contact email.
contact_nameStringStop contact name.
contact_phoneStringStop contact phone.
container_numberStringThe container number.
container_typeStringThe container type.
gross_weightNumberWeight in the UOM below. When the UOM is "L" (pounds) it is converted to kilograms.
gross_weight_original_uomStringWeight UOM. "L" = pounds, otherwise treated as kilograms.
notesArray<Note>Stop-level notes.
order_detailsOrderDetailsOrder / commodity detail for the stop (X12 OID loop).
quantityNumberPiece / handling-unit count.
reference_numbersArray<ReferenceNumber>Stop-level reference numbers (X12 L11).
release_numberStringThe release number.
reservation_numberStringThe reservation number.
sealStringThe seal number.
sequenceIntegerThe stop order.
shipper_shipment_idStringThe shipper shipment id.
stop_locationStopLocationThe stop address / role.
stop_reasonStringThe stop reason, e.g. "pickup".
stop_reason_codeStringThe stop reason code, e.g. CL, DR.
NameData TypeDescriptionRequired
order_linesArray<OrderLine>The order lines for the stop.
NameData TypeDescriptionRequired
commodity_type_descriptionStringA free-text description of the commodity.
NameData TypeDescriptionRequired
dateStringDate in YYYYMMDD.
timeStringTime in HHMM (defaults to 0000 when absent or invalid).
NameData TypeDescriptionRequired
address_1StringAddress line 1.
address_2StringAddress line 2.
cityStringCity.
countryStringCountry code.
location_typeStringThe stop role. SF = Ship From / origin, CN = Consignee / destination.
nameStringLocation name.
owners_idStringThe party / owner code.
postal_codeStringPostal / ZIP code.
stateStringState / province.

Example