Nippon Automated Cargo andPort Consolidated System
EDI Specification

April 1, 2023

Nippon Automated Cargo and Port
Consolidated System, IncContents
1. Data Processing Mode and Connection Modes
1.1 Data Processing Mode ················································································· 1-1-1
1.1.1 Interactive processing mode ···································································· 1-1-2
1.1.1.1 Interactive processing mode (for packaged software) ······························· 1-1-2
1.1.1.2 Interactive processing mode: SMTP two-way (for gateway computers) ········ 1-1-2
1.1.1.3 WebNACCS processing mode (for web browser) ···································· 1-1-3
1.1.1.4 Interactive processing mode: ebMS processing mode (for gateway computers) ··················································································································· 1-1-3
1.1.2 E-mail style processing mode ································································· 1-1-3
1.1.2.1 E-mail style processing mode for gateway computers ····························
1.2 Connection Configuration between User and NACCS ·······································

1-1-3
1-2-1

1.2.1 NACCS network ··················································································

1-2-1

1.2.1.1 Peer-to-peer connection ··································································
1.2.1.2 Router connection ··········································································

1-2-1
1-2-1

1.2.1.3 Gateway connection ········································································· 1-2-1
1.2.2 Internet ································································································ 1-2-2
1.2.2.1 netNACCS ···················································································· 1-2-2
1.2.2.2 WebNACCS ···················································································· 1-2-2
1.2.2.3 Gateway connection (ebMS processing mode) ······································· 1-2-2
1.3 Relationships between Connection Modes and Data Transmission/receipt Modes ···· 1-3-1
1.4 Examples of Information Use and Examples of Overtake Message in NACCS ······· 1-4-1
2. Network architecture
2.1 Outline of Network ····················································································· 2-1-1
2.2 Private IP address ························································································ 2-2-1
2.2.1 Use of private IP addresses ···································································
2.2.2 Private IP address architecture ·······························································
2.2.3 Relationship between IP address and subnet mask ·····································

2-2-1
2-2-2
2-2-3

2.2.4 IP address assignment by NACCS Center ················································

2-2-4

2.2.5 Where to assign the IP address ······························································
2.2.6 IP address allocation rules ·····································································
2.2.7 User LAN setup (typical cases) ·······························································

2-2-4
2-2-5
2-2-6

2.2.8 IP address translation ········································································· 2-2-13
2.2.9 Boundaries of liability for failures ··························································· 2-2-15
2.2.10 NACCS Information and IP address ····················································· 2-2-16
2.3 Outline of NACCS Connection Routers ··························································· 2-3-1
2.3.1 [Deleted] ····························································································
2.3.2 [Deleted] ····························································································

2-3-1
2-3-1

2.3.3 NACCS connection router (for dedicated line and fiber optic broadband connections) ·················································································································

2-3-1

2.4 Accessing NACCS servers from NACCS users
2.4.1 Access Control with DNS for accessing NACCS servers······························

2-4-1

Contents 1

2.4.2 Switching from production environment to backup environment ·····················

2-4-1

2.5 Redundancy Configuration in User Access Lines ·············································

2-5-1

2.5.1 Redundancy configuration overview ·························································

2-5-1

2.5.2 Line configuration in the redundancy configuration ······································
2.5.3 Range of responsibility in the redundancy configuration ·······························

2-5-1
2-5-1

2.5.4 Caution for redundancy configuration ························································· 2-5-2
3. Message Format and Structure
3.1 NACCS EDI Messages ···············································································
3.1.1 NACCS EDI message format ·································································

3-1-1
3-1-1

3.1.2 NACCS EDI message structure ······························································
3.1.2.1 Input Common Fields (Processing Request Message) ····························

3-1-1
3-1-3

3.1.2.2 Rules on message format ································································

3-1-4

3.1.2.2.1 Rules on message format for processing request messages ··············
3.1.2.2.2 Structure of a processing result message ·······································

3-1-4
3-1-5

3.1.2.3 Data entry rules for procedure-by-procedure fields ······························ 3-1-15
3.1.2.4 Output common fields (processing result messages)···························· 3-1-16
3.2 MIME Format Message ·············································································· 3-2-1
3.2.1 EDIFACT message ·············································································· 3-2-1
3.2.1.1 Message format for EDIFACT messages ·············································

3-2-1

3.2.1.1.1 Messages used ········································································
3.2.1.1.2 Syntax rules ············································································

3-2-1
3-2-2

3.2.1.1.3 Message version ······································································
3.2.1.1.4 Message structure ····································································

3-2-2
3-2-4

3.2.1.1.5 Available character set ·······························································
3.2.1.2 EDIFACT message structure ····························································

3-2-4
3-2-5

3.2.1.2.1 Input (output) common fields ······················································· 3-2-6
3.2.1.2.2 Transmission unit for messages ··················································· 3-2-9
3.2.1.2.3 Message format······································································ 3-2-10
3.2.1.2.4 Message processing mode ·······················································

3-2-143.2.1.3 Receipt confirmation for EDIFACT message ······································
3.2.1.3.1 Timing of receipt confirmation ····················································
3.2.1.3.2 Measure for receipt confirmation ················································

3-2-173-2-173-2-173.2.1.3.3 Notification of receipt confirmation ··············································
3.2.2 Attachment file message ·····································································
3.2.2.1 Message format for attachment file message ·····································
3.2.2.2 Message structure of attachment file ················································

3-2-173-2-183-2-183-2-183.2.2.3 Implemented mode ·······································································
3.2.2.4 Processing sequence ····································································

3-2-193-2-203.2.2.4.1 Interactive processing mode························································ 3-2-20
3.2.2.4.2 WebNACCS processing mode ····················································· 3-2-21
3.2.2.4.3 E-mail style processing mode ······················································ 3-2-22
3.3 XML Format Message ················································································ 3-3-1
Contents 2

3.3.1 Message format for XML format message ·················································

3-3-1

3.3.1.1 Format/version for XML format messages ···········································
3.3.2 Message structure for XML format messages ············································

3-3-1
3-3-1

3.3.3 Types of Transmit/Receive Message of XML Format Message ······················

3-3-2

3.3.4 Message specifications for XML format messages ······································
3.4 Message Types ························································································

3-3-2
3-4-1

3.5 Message Control Items ···············································································
3.5.1 Input Message ID ················································································

3-5-1
3-5-3

3.5.2 Message Tag, Message Control Information (Division Sequence Number, Termination,
Message Type) ···························································································
3.5.3 Continued processing (Index Tag) ···························································

3-5-4
3-5-6

3.6 Code System ···························································································
3.6.1 Character encoding system ···································································

3-6-1
3-6-1

3.6.1.1 Encoded characters used in outbound messages (processing request messages) ············································································································· 3-6-2
3.6.1.2 Encoded characters used in inbound messages (processing result messages) ··················································································································
3.6.2 Garbled characters ··············································································
3.7 Output Message Cache and Retrieving Procedure ···········································
3.7.1 Output Message Cache ········································································

3-6-5
3-6-8
3-7-1
3-7-1

3.7.2 Retrieving procedure ············································································

3-7-1

3.7.2.1 SYG procedure ··············································································
3.7.2.2 REQ procedure ··············································································

3-7-3
3-7-8

4. Details of Each Processing Mode
4.1 Interactive Processing Mode (for Packaged Software) ·················································
4.1.1 Outline of Processing Mode ····································································· 4-1-1
4.1.2 Details of the Communications protocol ······················································ 4-1-2
4.1.3 Procedure Sequential Processing······························································ 4-1-3
4.1.3.1 Examples of Procedure Processing Sequence for INQ Type Messages ······· 4-1-4
4.1.3.2 Examples of Procedure Processing Sequence for EXC Type Messages ···· 4-1-10
4.1.3.3 Example of Procedure Processing Sequence for EXZ Type Messages ······ 4-1-14
4.1.3.4 Examples of Procedure Processing Sequence for Attachment File Messages ···················································································································· 4-1-15
4.1.4 Others ······························································································· 4-1-16
4.2 Interactive Processing Mode (SMTP two-way) ················································· 4-2-1
4.2.1 Outline of interactive processing mode (SMTP two-way) ······························ 4-2-1
4.2.2 Interface that users should follow ···························································· 4-2-2
4.2.3 Details of the communications protocol····················································· 4-2-4
4.2.4 Message format ················································································ 4-2-14
4.2.5 Procedure sequential processing ··························································

4-2-284.2.6 Others ·····························································································

4-2-304.3 E-mail Style Processing Mode ·····································································
4.3.1 E-mail style processing for NACCS EDI messages ·····································

4-3-1
4-3-1

Contents 3

4.3.1.1 Outline of e-mail style processing mode (other than EDIFACT messages) ··4-3-1

4.3.1.2 Details of the communications protocols ·············································· 4-3-2
4.3.1.3 Message format ··········································································· 4-3-16
4.3.2 E-mail style processing for EDIFACT messages ·······································

4-3-274.3.2.1 Outline of e-mail style processing mode (EDIFACT messages) ··············
4.3.2.2 Details of the communications protocols ············································

4-3-27
4-3-284.3.2.3 Message format ···········································································
4.3.3 Mailbox····························································································

4-3-424-3-494.3.4 E-mail address ··················································································

4-3-534.3.5 Procedure processing sequence ··························································· 4-3-56
4.3.6 Others ······························································································· 4-3-58
4.4 WebNACCS Processing Mode (for Web browser) ·············································· 4-4-1
4.4.1 Outline of WebNACCS processing mode (for Web browser) ···························· 4-4-1
4.4.2 Details of the communications protocol ······················································· 4-4-2
4.4.3 Procedure processing sequence ······························································· 4-4-3
4.5 ebMS Processing Mode ·············································································· 4-5-1
4.5.1 Outline of processing mode ···································································
4.5.2 Details of the communications protocol·····················································
4.5.3 Messages used in ebMS processing mode ················································
4.5.4 Setting for ebMS processing mode ··························································

4-5-1
4-5-2
4-5-4
4-5-6

4.5.5 Message format and structure ································································

4-5-9

4.5.6 Procedure sequential processing ·························································· 4-5-11
4.6 Others ······································································································ 4-6-1
4.6.1 e-mail ································································································
4.6.1.1 Major check points for e-mail address ·················································

4-6-1
4-6-1

4.6.1.2 e-mail transmission ·········································································
4.6.1.3 Information transmitted by e-mail ·······················································

4-6-1
4-6-2

4.6.2 Attachment file ····················································································
4.6.2.1 Extension ·····················································································
4.6.2.2 File name and format ······································································

4-6-3
4-6-3
4-6-3

4.6.2.2.1 When carrying out MSX or MSY01 procedure ·································

4-6-3

4.6.2.2.2 When carrying out procedures other than MSX and MSY01 ···············
4.6.2.3 Character code used for file name ·····················································
4.6.2.3.1 When carrying out MSX or MSY01 procedure ·································

4-6-3
4-6-4
4-6-4

4.6.2.3.2 When carrying out procedures other than MSX and MSY01 ···············
4.6.2.4 Garbled characters in file name ·························································
4.6.2.5 File name length ············································································

4-6-4
4-6-4
4-6-4

5. Destination Control
5.1 Outline of Destination Control ······································································

5-1-1

5.2 Setting of Destination of Processing Result Message ········································

5-2-1

5.2.1 Output pattern of processing result message ·············································

5-2-1

5.2.2 Setting of output destination ···································································
5.2.3 Dual output function ·············································································

5-2-3
5-2-5

Contents 4

5.2.4 Setting the output destination printer ·························································· 5-2-6
6. Retrieval of Management Document Information
6.1 Retrieval of Management Document Information
6.1.1 Transmission Method ···········································································
6.1.2 Users Who Can Retrieve Information ·······················································

6-1-1
6-1-1

6.1.3 Retrieval Method ··················································································· 6-1-1
6.1.4 Retention Period ···················································································· 6-1-2
6.1.5 File Format and Spreadsheet Software Used ··············································· 6-1-2
6.1.6 Dividing Management Documents ····························································· 6-1-3
6.1.7 Re-Transmission Method ········································································ 6-1-4
6.1.8 Request for Re-Output of Bonded Management Documents ··························· 6-1-4
6.1.8.1 Users Who Can Re-Output ······························································· 6-1-4
6.1.8.2 Retention Period ·········································································· 6-1-4
6.1.8.3 Method for Retrieving Re-Output Management Documents ·············· 6-1-4
6.2 Procedures for Retrieving Management Document Information (Using the Own System) ·················································································································
6.2.1 Communication Specification ································································

6-2-1
6-2-1

6.2.1.1 Specification for Sending/Receiving HTTP ·····································

6-2-1

6.2.1.2 Sequence of Management Document Information Retrieval ·············· 6-2-2
6.2.2 Message Specification ······································································· 6-2-5
6.2.2.1 Message Structure ········································································· 6-2-5
6.2.2.2 Content of Settings for Each Message ·············································· 6-2-11
6.2.2.3 Naming Scheme of Management Document Information Files ···············
6.2.3 Handling Errors ·················································································

6-2-22
6-2-246.2.4 Others ·····························································································
6.2.5 Values of Various Timers ····································································

6-2-25
6-2-26

7. Security Measures
7.1 NACCS Center Hardware ············································································· 7-1-1
7.2 Network ··································································································

7-2-1

7.3 Eligibility Check ·························································································· 7-3-1
7.3.1 Logon check ························································································· 7-3-1
7.3.2 Mailbox access eligibility check ································································· 7-3-1
7.3.3 Processing Result Message (for printer) acquiring eligibility check ···················· 7-3-1
7.3.4 Procedure eligibility check ········································································ 7-3-1
7.3.5 Single sign-on for users involved in multiple business types ···························· 7-3-2
7.4 Security Measures for Users ····································································· 7-4-1
7.4.1 Security Measures Implemented by Users ················································
7.4.2 Security Standards for Connections to External Networks ····························

7-4-1
7-4-5

7.5 netNACCS Processing Mode, WebNACCS Processing Mode, and ebMS Processing
Mode ·········································································································· 7-5-1
7.5.1 Security Measures by NACCS Center ························································ 7-5-1
7.5.2 Security Measures for Communications, etc. ············································· 7-5-1
Contents 5

7.5.3 netNACCS Processing Mode Connection Example ···································· 7-5-3
7.5.4 WebNACCS Processing Mode Connection Example ·································· 7-5-5
7.5.5 Notes for Using netNACCS Processing Mode, WebNACCS Processing Mode, andebMS Processing Mode ··············································································· 7-5-7
7.5.6 Security Measures by Users ···································································· 7-5-9
7.6 System Auditing ·························································································· 7-6-1
8. Connection Test
8.1 Outline and Details of Connection Test ··························································

8-1-1

8.2 Connection Test and Items to Prepare for Joining NACCS······························

8-2-1

9. Changing Settings Online by Users
9.1 Outline of Changing Settings Online by Users ·················································

9-1-1

9.2 Processes from Initial Value Setting to the Start of Procedure Implementation········

9-2-1

9.3 Procedures and Items Subject to Changing Settings by Users ····························

9-3-1

Contents 6

Appendix[Common to NACCS EDI messages and EDIFACT messages]
Appendix 1. Available Connection Modes and Processing Modes (Summary) ···· Appendix 1-1
Appendix 2. Concrete Examples of Cases Where Data Processing Modes and Connection
Modes Are Mixed ·················································································· Appendix 2-1
Appendix 3. Concrete Example of System Configuration ······························· Appendix 3-1
Appendix 4. Access Lines and Access Points ·············································· Appendix 4-1(1) Dedicated access line ····························································· Appendix 4-1(2) [Deleted] ·············································································· Appendix 4-1(3) Fiber optic broadband ····························································· Appendix 4-1
Appendix 5. Details of Processing Result Messages ····································· Appendix 5-1(1) NACCS EDI Messages ························································· Appendix 5-1
1) Formats of processing result notification message and output message (inquiry
result) ··············································································· Appendix 5-1
2) Output message (excluding inquiry result) format ··················· Appendix 5-2
3) Format of processing result notification message output in case of error ································································································· Appendix 5-3(2) EDIFACT message ································································· Appendix 5-7(3) XML message ······································································· Appendix 5-7(4) Procedures which treated as continued processing ······················· Appendix 5-7
Appendix 6. Codes ················································································ Appendix 6-1
1. Output Information Code System ················································ Appendix 6-1
2. Processing Result Code System ················································· Appendix 6-3
3. User Codes and Identifying Numbers, etc. ·································· Appendix 6-11
Appendix Table 6.7.1 Subjected Procedure List [Explanatory Note]
Appendix Table 6.7.2 Subjected Procedure List [Arrival-Departure and Tonnage Due
Procedures]
Appendix Table 6.7.3 Subjected Procedure List [Import Procedures]
Appendix Table 6.7.4 Subjected Procedure List [Export Procedures]
Appendix Table 6.7.5 Subjected Procedure List [Import-export common Procedures]
Appendix Table 6.7.6 Subjected Procedure List [Imported Food Monitoring Support
Procedures]
Appendix Table 6.7.7 Subjected Procedure List [Plant Quarantine Related
Procedures]
Appendix Table 6.7.8 Subjected Procedure List [Animal Quarantine Related
Procedures]
Appendix Table 6.7.9 Subjected Procedure List [Trade Control Related Procedures]
Appendix Table 6.8.1 Output Information Code List [Explanatory Note]
Appendix Table 6.8.2 Output Information Code List [Arrival-Departure and Tonnage
Due Procedures]
Appendix Table 6.8.3 Output Information Code List [Import Procedures]
Appendix Table 6.8.4 Output Information Code List [Export Procedures]
Appendix Table 6.8.5 Output Information Code List [Import-export common
Procedures]
Contents 7

Appendix Table 6.8.6 Output Information Code List [Imported Food Monitoring
Support Procedures]
Appendix Table 6.8.7 Output Information Code List [Plant Quarantine Related
Procedures]
Appendix Table 6.8.8 Output Information Code List [Animal Quarantine Related
Procedures]
Appendix Table 6.8.9 Output Information Code List [Trade Control Related
Procedures]
Appendix Table 6.9.1 List of Private Management Document Information [Explanatory
Note]
Appendix Table 6.9.2 List of Private Management Document Information
Appendix 7. Accumulative Processing Procedures ······································· Appendix 7-1(1) Division Processing <Pattern 1> ················································ Appendix 7-1(2) Automatic Invocation Processing <Pattern 2> ······························· Appendix 7-2
Appendix 8. Relationships Between IP Address, User Code, Mailbox ID, and Password ·················································································································· Appendix 8-1
Appendix 9. Specific Examples of Destination Management for Processing Result Message ····
(INQ type message/EXZ type message/EXC type message) ·························· Appendix 9-1
Appendix 10. Purposes of Mailboxes for Incoming Messages ······················· Appendix 10-1
Appendix 11. Transmission of Broadcast Messages ··································· Appendix 11-1
1. Broadcast Function ································································ Appendix 11-1
2. Users Who Can Retrieve Broadcast Messages ···························· Appendix 11-1
3. Processing Image ································································· Appendix 11-2
Appendix 12. Dual Output Function for Import/Export Permit Notice Information, etc. ····················································································································· Appendix 12-1
1. Outline of Dual Output Function ················································ Appendix 12-1
2. Type of Information for Which Dual Output Can Be Made ·············· Appendix 12-1
3. Dual Output Pattern ······························································· Appendix 12-1
Appendix 13. List of Items Subject to Changing Settings Online by Users
Appendix 14. EDIFACT Messages
1. Outline of EDIFACT ····································································· Appendix 14-1-1
2. EDIFACT Mapping Rules······························································ Appendix 14-2-1
2.1 How to Look at Segment Table/Mapping Table ····················· Appendix 14-2-1
2.2 Message Structure ························································· Appendix 14-2-7
2.3 About Service Segments ·············································· Appendix 14-2-34
2.4 Error Handling for EDIFACT Messages ·································· Appendix 14-2-47
2.4.1 CONTRL Message ······················································· Appendix 14-2-47
2.4.2 APERAK Message ······················································· Appendix 14-2-48
2.4.3 CUSRES Message······················································· Appendix 14-2-48
2.4.4 Mapping Table ···························································· Appendix 14-2-49
2.4.5 Code List ··································································· Appendix 14-2-49
3. Input (Output) Common Fields of EDIFACT Messages························ Appendix 14-3-1
3.1 Input common fields (processing request messages) ····················· Appendix 14-3-1
3.2 Output common fields (process result messages) ························· Appendix 14-3-2
Contents 8

4. Subset Names of Procedures Supported by EDIFACT ·························· Appendix 14-4
5. Use of EDIFACT Messages (for Sea Cargo and Arrival/Departure) ········ Appendix 14-5-1
5.1 Update Manifest Information ·················································· Appendix 14-5-1
5.2 Vessel Operation Information Registration (VTX01) and correction ·· Appendix 14-5-4
5.3 Registration and correction of ACL information registration (ACL) ·· Appendix 14-5-5
5.4 Message structures for Unified Application Before Vessel Arrival (VPX), Vessel Entry
Notice (VIX), and Vessel Departure Notice (VOX) ···························· Appendix 14-5-6
Appendix 15. XML Messages
1. How to read Mapping Table ·························································· Appendix 15-1-1
2. Appendix 15.2 Processing Result Notification (Common Error) Mapping Table
Appendix 16. Main Changes of EDI Specification for NACCS ····················· Appendix 16-1
Appendix 17. Support for Packaged Software (Interactive Processing Mode) (For Users Not
Using NACCS DNS) ········································································ Appendix 17-1
Appendix 18. Response to NACCS Failure and Recovery (For Users Not Using NACCS DNS)···································································································· Appendix 18-1

* In this document, abbreviations are used for the following names.
NACCS Center: Nippon Automated Cargo and Port Consolidated System, Inc.
Trademark:Microsoft, Windows or names of other Microsoft Products are either registered trademarks or trademarksof Microsoft Corporation in the United States and/or other countries. Pentium is a registered trademark of Intel
Corporation. Other product names and names of companies are either registered trademarks or trademarks ofeach company.

Contents 9