EDI

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

BGN Beginning Segment

To indicate the beginning of a transaction set
Sequence
Element
Name
Type
Requirement
Min
Max
Repeat
01
353
Transaction Set Purpose Code
Identifier (ID)
Mandatory
2
2
1
Code identifying purpose of transaction set
Codes (76)
02
Reference Identification
String (AN)
Mandatory
1
80
1
Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier
BGN02 is the transaction set reference number.
03
Date
Date (DT)
Mandatory
8
8
1
Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year
BGN03 is the transaction set date.
04
Time
Time (TM)
Conditional
4
8
1
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)
BGN04 is the transaction set time.
05
Time Code
Identifier (ID)
Optional
2
2
1
Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow
C0504
BGN05 is the transaction set time qualifier.
Codes (56)
06
Reference Identification
String (AN)
Optional
1
80
1
Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier
BGN06 is the transaction set reference number of a previously sent transaction affected by the current transaction.
07
Transaction Type Code
Identifier (ID)
Optional
2
2
1
Code specifying the type of transaction
Codes (551)
08
Action Code
Identifier (ID)
Optional
1
2
1
Code indicating type of action
Codes (325)
09
Security Level Code
Identifier (ID)
Optional
2
2
1
Code indicating the level of confidentiality assigned by the sender to the information following
Codes (17)
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.