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

N4 Geographic Location

To specify the geographic place of the named party
Sequence
Element
Name
Type
Requirement
Min
Max
Repeat
01
19
City Name
String (AN)
Optional
2
30
1
Free-form text for city name
A combination of either N401 through N404, or N405 and N406 may be adequate to specify a location.
02
State or Province Code
Identifier (ID)
Conditional
2
2
1
Code (Standard State/Province) as defined by appropriate government agency
E0207
N402 is required only if city name (N401) is in the U.S. or Canada.
03
Postal Code
Identifier (ID)
Optional
3
15
1
Code defining international postal zone code excluding punctuation and blanks (zip code for United States)
04
Country Code
Identifier (ID)
Conditional
2
3
1
Code identifying the country
05
Location Qualifier
Identifier (ID)
Conditional
1
2
1
Code identifying type of location
Codes (182)
06
Location Identifier
String (AN)
Optional
1
30
1
Code which identifies a specific location
C0605
07
Country Subdivision Code
Identifier (ID)
Conditional
1
3
1
Code identifying the country subdivision
C0704
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.