EDI
API DocsTerminal
NEW!
Programmatically translate EDI to JSON with the EDI Core REST API
Get started in minutes →
Segment
in
X12 Release 004020

B4 Beginning Segment for Inquiry or Reply

To transmit identifying numbers, dates, and other basic data relating to the transaction set
Sequence
Element
Name
Type
Requirement
Min
Max
Repeat
01
152
Special Handling Code
Identifier (ID)
Optional
2
3
-
Code specifying special transportation handling instructions
Codes (536)
02
Inquiry Request Number
Numeric (N0)
Optional
1
3
-
Identifying number assigned by inquirer
03
Shipment Status Code
Identifier (ID)
Optional
1
2
-
Code indicating the status of a shipment
Codes (179)
04
Date
Date (DT)
Optional
8
8
-
Date expressed as CCYYMMDD
B404 is the date of last reported status of cargo.
05
Time
Time (TM)
Optional
4
8
-
Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)
B405 is the time (HHMM) of the last reported status of the cargo.
06
Status Location
String (AN)
Optional
3
5
-
Air shipment: Airport code for last reported status for a shipment; (Note: If the shipment is in-flight, the status location is the origin airport for this flight) Ground transportation: Code of carrier's terminal
07
Equipment Initial
String (AN)
Conditional
1
4
-
Prefix or alphabetic part of an equipment unit's identifying number
P0708
08
Equipment Number
String (AN)
Conditional
1
10
-
Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)
09
Equipment Status Code
Identifier (ID)
Optional
1
2
-
Code indicating status of equipment
Codes (14)
10
Equipment Type
Identifier (ID)
Optional
4
4
-
Code identifying equipment type
11
Location Identifier
String (AN)
Conditional
1
30
-
Code which identifies a specific location
P1112
12
Location Qualifier
Identifier (ID)
Conditional
1
2
-
Code identifying type of location
Codes (175)
13
Equipment Number Check Digit
Numeric (N0)
Optional
1
1
-
Number which designates the check digit applied to a piece of equipment
Stedi is a registered trademark of Stedi, Inc. Stedi's EDI Reference and Mapping Guides are provided for marketing purposes and are free of charge. All names, logos, and brands of third parties listed on our site are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Our use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.
Stedi is a registered trademark of Stedi, Inc. Stedi's EDI Reference and Mapping Guides are provided for marketing purposes and are free of charge. All names, logos, and brands of third parties listed on our site are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Our use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.