Method and system for cross-border electronic document collaboration in smart customs

Through the comprehensive declaration system and message conversion system, customs declaration data can be entered at one time and intelligently decomposed in cross-border trade, solving the problem of repeated entry and declaration data by enterprises, improving customs clearance efficiency and data accuracy, and reducing costs.

CN119784315APending Publication Date: 2025-04-08SHANGHAI WENJING INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411838611.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

In cross-border trade, enterprises need to repeatedly enter and declare data, resulting in high labor and time costs and low customs clearance efficiency.

Method used

By creating a comprehensive declaration system and message conversion system, customs declaration data can be entered at one time, intelligently decompose and declared to the customs of the exporting and importing countries respectively. The message conversion system will generate customs declaration data according to the port departments of different countries and meet different requirements.

Benefits of technology

It reduces the need for enterprises to repeatedly enter data, reduces labor and time costs, improves customs clearance efficiency and data accuracy, and promotes the facilitation of international trade.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119784315A_ABST
    Figure CN119784315A_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for cross-border electronic document collaboration of intelligent customs affairs. Relying on the existing international trade single window standard version cargo declaration system, a comprehensive declaration system is created, customs declaration data is input once, data is intelligently decomposed and reported to the customs and other port departments respectively; on the comprehensive declaration system, the data input by the enterprise is linked with the message conversion system, and the customs declaration data is generated according to the data format and message specifications that meet different requirements of the port departments of different countries. It can avoid the need for enterprises to repeatedly input and report data to the port departments of different countries, reducing manpower and time costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of international trade, and in particular, relates to a method and system for smart customs cross-border electronic document collaboration. Background Art

[0002] Cross-border trade refers to the exchange of goods and services between two or more countries. It is an important part of the globalization of the world economy. In the modern international trade system, cross-border trade has become an important driving force for the economic development of various countries.

[0003] The main forms and methods of cross-border trade include import and export. Import refers to the purchase of goods and services from other countries in the domestic market to meet domestic demand; export refers to the sale of domestic goods and services to other countries' markets to expand market share and increase economic income.

[0004] In cross-border trade, goods declaration is required when entering or leaving the country. The same batch of goods needs to be declared once at the customs of the exporting country when exported, and a second declaration is required at the customs of the importing country when imported. Enterprises need to repeatedly enter data and declare to the port departments of different countries, which takes a lot of manpower and time, is inconvenient to operate, and is not conducive to improving customs clearance efficiency. Summary of the invention

[0005] The purpose of the present invention is to provide a method and system for smart customs cross-border electronic document collaboration, to simplify the declaration process of cross-border trade goods, to reduce the customs clearance costs of enterprises, and to improve customs clearance efficiency.

[0006] To solve the above problems, the technical solution of the present invention is: A method for cross-border electronic document collaboration for smart customs affairs, comprising: Based on the standard version of the cargo declaration system of the single window for international trade, a comprehensive declaration system is created to facilitate one-time entry of customs declaration data, intelligent decomposition of customs declaration data and declaration to international port departments; the customs declaration data is divided into export country declaration data and import country declaration data; Create a message conversion system to convert customs declaration data into data formats and message specifications that meet different requirements according to port departments in different countries; A data linkage relationship is established between the comprehensive declaration system and the message conversion system, and the data linkage relationship is configured to realize the processing of the declaration data of the exporting country or the declaration data of the importing country: the customs declaration data obtained by the comprehensive declaration system is parsed and verified to see whether the customs declaration data conforms to the XSD standard and the message to be converted and the request of the destination country to be converted are obtained by analyzing the declared destination country, and sent to the message conversion system; the message conversion system parses the message to be converted according to the request, disassembles the field attributes and field attribute values ​​of the message according to the XSD document specification, matches and replaces the field attribute values ​​of the original message with the field attribute values ​​of the message of the destination country according to the conversion rules configured for the destination country message, encapsulates the converted field attribute values ​​to generate a declaration message of the destination country, pushes the declaration message to the corresponding customs declaration open platform, and receives the declaration result. If the declaration is successful, a release message is generated and sent to the comprehensive declaration system.

[0007] According to an embodiment of the present invention, when making the first customs declaration, after receiving the original message, the message conversion system parses the header information body of the original message, and searches the message format of the exporting country in the system according to the information of the exporting country; once a matching message format is found, the corresponding target message is automatically generated according to the bit operation algorithm, the dictionary matching algorithm or the KMP matching algorithm, and the target message is pushed to the customs declaration system of the exporting country, and the subsequent operation messages are continuously received; When making the second customs declaration, the message conversion system will parse the message header information again after receiving the message, and match the message format in the system according to the information of the importing country; once a matching message format is found, the corresponding message is automatically generated and pushed to the customs declaration system of the importing country, and subsequent operation messages are continuously received.

[0008] According to an embodiment of the present invention, after the message conversion system is created, the message conversion rules, the destination country conversion dictionary and the routing sending items are configured; When the customs declaration data sent by the comprehensive declaration system is received, the pre-configured message converter is searched according to the destination country. The message converter first converts the name of the original message field into the target message field name, converts the value of the original message field according to the destination country conversion dictionary, and then packages the message according to the destination country's message format to obtain the converted message; the destination router is queried according to the destination country, and the destination router sends the converted message.

[0009] According to an embodiment of the present invention, the configuration message conversion rules, destination country conversion dictionary and route sending items further include: Import or add trade country information to the message conversion system so that the corresponding message format can be identified and matched; at the same time, create a new message format entity in the message conversion rule and bind it with the country information and version information; New routing information is created on the message conversion system to specify the transmission path and destination of the message; in route selection, the message conversion rules are bound to the actual routing information.

[0010] According to an embodiment of the present invention, after the message conversion system generates a message, it determines whether there is an attachment. If so, it obtains the attachment, calls a file compression tool, generates a final message, and pushes it through the TCP protocol.

[0011] According to one embodiment of the present invention, when converting a customs code message, the customs code field in the original customs declaration is first found according to the KMP matching algorithm, extracted according to the corresponding value, and then matched according to the dictionary to find the customs code value corresponding to the target message, and the value is written into the corresponding field of the target message.

[0012] According to an embodiment of the present invention, during the message conversion process, if there is code padding, a right shift operation or a left shift operation is performed on the converted code to pad with 0s to meet the target message standard length.

[0013] According to an embodiment of the present invention, parsing and verifying whether the customs declaration data complies with the XSD standard further includes: Specify an XML Schema to verify whether the customs declaration data complies with the XSD standard. The XML Schema is the structure and content allowed by the standard customs declaration data table; Declare the namespace used by the customs declaration data file and declare the reference to the corresponding XML Schema instance; Declare the corresponding namespace and the storage location of its corresponding XML Schema document through schema location; Based on the XML Schema and related declaration information, XMLLint or XML Schema Validator tool is used to verify whether the customs declaration data file complies with the XSD standard.

[0014] According to an embodiment of the present invention, the message conversion system is configured to construct a converter object, initialize the converter object, load the XSD document parsing specification and the conversion rules of the destination country message configuration; Instantiate the converter object, use the parse method of the converter object to parse the original message, and convert the XSD document parsing specification into the converter's internal data structure; The internal data structure is converted into a target message using the convert method of the converter object based on the conversion rules configured for the destination country message.

[0015] A system for cross-border electronic document collaboration for smart customs affairs, including: a comprehensive declaration system, a message conversion system; The comprehensive declaration system is created based on the standard version of the cargo declaration system of the international trade single window, so as to input the customs declaration data at one time, realize the intelligent decomposition of the customs declaration data and declare it to the international port department; the customs declaration data is divided into the declaration data of the exporting country and the declaration data of the importing country; The message conversion system realizes the generation of data formats and message specifications that meet different requirements of the customs declaration data according to the port departments of different countries; A data linkage relationship is established between the comprehensive declaration system and the message conversion system, and the data linkage relationship is configured to realize the processing of the declaration data of the exporting country or the declaration data of the importing country: the customs declaration data obtained by the comprehensive declaration system is parsed and verified to see whether the customs declaration data conforms to the XSD standard and the message to be converted and the request of the destination country to be converted are obtained by analyzing the declared destination country, and sent to the message conversion system; the message conversion system parses the message to be converted according to the request, disassembles the field attributes and field attribute values ​​of the message according to the XSD document specification, matches and replaces the field attribute values ​​of the original message with the field attribute values ​​of the message of the destination country according to the conversion rules configured in the destination country message, encapsulates the converted field attribute values ​​to generate a declaration message of the destination country, pushes the declaration message to the corresponding customs declaration open platform, and receives the declaration result. If the declaration is successful, a release message is generated and sent to the comprehensive declaration system.

[0016] Due to the adoption of the above technical solution, the present invention has the following advantages and positive effects compared with the prior art: 1) The method of cross-border electronic document collaboration for smart customs affairs in one embodiment of the present invention creates a comprehensive declaration system based on the existing international trade single window standard version cargo declaration system, enters customs declaration data at one time, intelligently decomposes the data and declares to the customs and other port departments respectively; in the comprehensive declaration system, the data entered by the enterprise is linked with the message conversion system, and the customs declaration data is generated according to the data format and message specifications that meet the different requirements of the port departments of different countries. This can avoid the need for enterprises to repeatedly enter and declare data for the port departments of different countries, reducing manpower and time costs.

[0017] 2) Through the integrated declaration system, enterprises can declare in different countries and regions to provide more convenience for enterprises, help promote the development of international trade, and strengthen supervision and facilitate international trade. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A flowchart of a method for smart customs cross-border electronic document collaboration in one embodiment of the present invention; Figure 2 It is a module diagram of a comprehensive declaration system in one embodiment of the present invention; Figure 3A schematic diagram of modules of a message conversion system in one embodiment of the present invention; Figure 4 is a logic timing diagram of a message conversion system in one embodiment of the present invention; Figure 5 A flowchart of multi-type message conversion in one embodiment of the present invention; Figure 6 A schematic diagram of the data format of an original message in an embodiment of the present invention; Figure 7 A schematic diagram of the data format of a conversion message in an embodiment of the present invention; Figure 8 A system block diagram of smart customs cross-border electronic document collaboration in one embodiment of the present invention; Fig. 9 This is a system application scenario diagram of smart customs cross-border electronic document collaboration in one embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following is a further detailed description of a method and system for smart customs cross-border electronic document collaboration proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become more apparent from the following description and claims.

[0020] In view of the existing problem that the same batch of goods in cross-border trade needs to be declared once at the customs of the exporting country when exported, and a second declaration needs to be made at the customs of the importing country when imported. Enterprises need to repeatedly enter and declare data to the port departments of different countries, which takes a lot of manpower and time and is inconvenient to operate. This embodiment provides a method for smart customs cross-border electronic document collaboration, which enters the customs declaration data at one time, avoids the cumbersome process and additional costs caused by repeated declarations, and can also improve the accuracy and consistency of declarations, which is beneficial to customs supervision and inspection.

[0021] Please see Figure 1 The method for cross-border electronic document collaboration of smart customs affairs includes the following steps: S1: Based on the standard version of the cargo declaration system of the single window for international trade, a comprehensive declaration system is created to facilitate one-time entry of customs declaration data, intelligent decomposition of customs declaration data and declaration to international port departments; the customs declaration data is divided into export country declaration data and import country declaration data; S2: Create a message conversion system to convert customs declaration data into data formats and message specifications that meet different requirements according to port departments in different countries; S3: Establish a data linkage relationship between the comprehensive declaration system and the message conversion system, and the data linkage relationship is configured to realize the processing of the declaration data of the exporting country or the declaration data of the importing country: the customs declaration data obtained by the comprehensive declaration system is parsed and verified to see whether it complies with the XSD standard and the message to be converted and the request of the destination country to be converted are obtained by analyzing the declared destination country, and sent to the message conversion system; the message conversion system parses the message to be converted according to the request, disassembles the field attributes and field attribute values ​​of the message according to the XSD document specification, matches and replaces the field attribute values ​​of the original message with the field attribute values ​​of the message of the destination country according to the conversion rules configured for the destination country message, encapsulates the converted field attribute values ​​to generate a declaration message of the destination country, pushes the declaration message to the corresponding customs declaration open platform, and receives the declaration result. If the declaration is successful, a release message is generated and sent to the comprehensive declaration system.

[0022] The method of cross-border electronic document collaboration for smart customs affairs relies on the existing international trade single window standard version of the goods declaration system to create a comprehensive declaration system, enter the customs declaration data at one time, intelligently decompose the data and declare it to the customs and other port departments separately. In the comprehensive declaration system, the data entered by the enterprise is linked with the message conversion system, and the customs declaration data is generated according to the data format and message push that meet the different requirements of the port departments of different countries. It can avoid enterprises from repeatedly entering and declaring data for port departments of different countries, reduce manpower and time costs, and improve customs clearance efficiency.

[0023] Specifically, in step S1, a comprehensive declaration system is created based on the standard version of the goods declaration system of the single window for international trade. The comprehensive declaration system is a key infrastructure for realizing cross-border one-order and two-declaration, and can be built based on the existing standard version of the goods declaration system of the single window for international trade. In the comprehensive declaration system, enterprises can enter the customs declaration data at one time, and the system can intelligently decompose the data and declare it to the customs and other port departments separately.

[0024] Please see Figure 2 The comprehensive declaration system includes multiple functional modules such as basic information, comprehensive query, cargo declaration, receipt management, system management, etc. Among them, the basic information module is used to import or enter basic information including CIQ code, HSCODE, declaration elements, customs QP, port code, origin, data dictionary, etc.; enterprises can enter customs declaration data at one time, and the comprehensive declaration system will intelligently decompose the customs declaration data according to the basic information module and fill in the field value under the corresponding field name.

[0025] The comprehensive query module realizes two-step declaration data query, customs declaration data query and simple query.

[0026] The cargo declaration module is used to generate forms including import integrated declaration, export integrated declaration, entry registration list integrated declaration, exit registration list integrated declaration, and transfer form, and provide declaration information to various port departments.

[0027] The receipt management module is used to receive forms including import receipts, export receipts, entry list receipts, exit list receipts, and transfer bill receipts, and to classify, store, delete, and manage these forms.

[0028] The system management module implements functions including user management, enterprise management, authority management, role management, authority allocation, department management, and log management to enable the normal operation of the comprehensive declaration system.

[0029] When declaring goods for cross-border trade, the comprehensive declaration system collects import and export integrated declarations from the PC page and TCP interface, then parses the message to verify the correctness of the message and analyzes the destination country of the message, and finally sends it to the message conversion system through the TCP protocol to wait for the declaration result to be returned to the destination country.

[0030] Through the integrated declaration system, enterprises can make declarations in different countries and regions, and share the declaration data with various port departments. Port departments can achieve rapid customs clearance and inspection by comparing the consistency and authenticity of the declaration data. This can strengthen supervision and facilitate international trade.

[0031] In step S2, a message conversion system is created to convert the customs declaration data into data formats and message specifications that meet different requirements according to the port departments of different countries.

[0032] Please see Figure 3 The message conversion system includes multiple modules such as message rules, file management and conversion operations. The message rule module is used to set and store the message specifications corresponding to the country, and different countries correspond to different message specifications.

[0033] The file management module realizes the functions of file generation, file compression, file transfer and file deletion.

[0034] The conversion operation module realizes the functions of message receiving, message forwarding, message storage, receipt parsing and routing selection.

[0035] Please see Figure 4The main logic of the message conversion system is: receive the message conversion request and export message sent by the comprehensive declaration system, extract the message converter according to the configuration rules, and the message converter is configured in advance. The message converter converts the field name of the message into the field name of the target message, and the value of the field sends a query dictionary request to the destination country conversion dictionary, receives the returned dictionary value, and writes it to the corresponding field. When there is an attachment, the message converter sends the attachment to the file processor, receives the returned document URL or Base64, and generates a converted message. After the message conversion system generates the converted message, it queries the destination router according to the destination country; the destination router implements the sending of various interactions, such as http push requests, rpc push data, and other interactions.

[0036] The message conversion system is configured to construct a converter object, initialize the converter object, load the XSD document parsing specification and the conversion rules of the destination country message configuration; instantiate the converter object, use the parse method of the converter object to parse the original message, and convert the XSD document parsing specification into the converter's internal data structure; use the convert method of the converter object to convert the internal data structure into a target message based on the conversion rules of the destination country message configuration.

[0037] For more information about multi-type message conversion, see Figure 5 The prerequisite for the message conversion system is to configure the message conversion rules, configure the destination country conversion dictionary, and configure the routing. Specifically, import or add the trade country information on the message conversion system so that the system can identify and match the corresponding message format. At the same time, create a new message format entity in the message rule and bind it with the country information and version information. In this way, the message format that meets the requirements can be automatically selected and generated according to the trade country information.

[0038] New routing information is created on the message conversion system to specify the transmission path and destination of the message. In the routing selection, the message rules are bound to the actual routing information. In this way, the appropriate route can be automatically selected for transmission based on the characteristics and destination of the message, ensuring the accurate delivery of the message.

[0039] When making the first customs declaration, after receiving the message, the message conversion system parses the header information of the message and matches the message format in the system according to the information of the exporting country. Once a matching message format is found, the system automatically generates the corresponding target message according to the bit operation algorithm, dictionary matching algorithm or KMP matching algorithm.

[0040] For example, when converting messages between China and Singapore, such as the HSCODE field, first find the HSCODE field in the Chinese customs declaration form according to the KMP matching algorithm, extract it according to the corresponding value, and then match it according to the existing Chinese to Singapore dictionary in the system to find the corresponding HSCODE value of Singapore, and write the value into the HSCODE field of the Singapore message. In this way, a HSCODE value from China to Singapore is converted. If there is still a situation of code padding during the conversion process, the converted code will be right-shifted (>>>) or left-shifted (<<<) to fill it with 0 to meet the target message specification length. If there is an attachment in the message, the file compression function is called to generate a message. Finally, the message is pushed to the customs declaration system of the exporting country through the TCP protocol, and subsequent operation messages are continuously received.

[0041] The Knuth–Morris–Pratt algorithm, or KMP for short, finds the occurrences of a word W within a string S. The algorithm exploits the fact that a word, when unmatched, contains enough information to determine where the next match might start, to avoid rechecking previously paired characters.

[0042] During the second customs declaration, after the message is received, the message conversion will parse the message header information again and match the message format in the system according to the information of the importing country. Once a matching message format is found, the system will automatically generate the corresponding message. Similarly, if there are attachments in the message, the file compression function will be called for processing. Finally, the generated message is pushed to the customs declaration system of the importing country through the TCP protocol, and subsequent operation messages are continuously received.

[0043] The following is an example to introduce the specific content of the message and the converted data format.

[0044] In actual applications, the original message comes from the official message of a country's national single window, which contains the following key information: Customs declaration header: records basic customs declaration information in detail, such as export / import date, bill of lading number, etc. Product details: Display detailed information such as product name, quantity, value, etc. to ensure compliance with declaration; Container details: describe the container type, quantity, seal number and other information to facilitate customs inspection; Accompanying documents: Attach necessary supporting documents, such as invoices, packing lists, etc., to prove the authenticity of the declared content; Enterprise qualification information: verify the enterprise registration information, business scope, etc. to ensure that the enterprise has legal business qualifications; Free text information on customs declarations: Provide additional notes or explanations to help customs understand special circumstances; Customs declaration signature: an electronic signature with legal effect, confirming the identity of the person submitting the customs declaration information and the authenticity of the information.

[0045] Based on the above original message information, the message converter constructs a converter object, uses the parse method of the converter object to parse the original message, and converts it into the converter's internal data structure. For its internal data structure, please refer to Figure 6 .

[0046] The conversion message comes from the overseas customs system and contains the following key information: Header: the title and basic information of the message, such as message type, date, etc. Packaging information: a detailed description of the product's packaging method, packaging materials, packaging size, etc. Transportation information: includes information such as transportation method, transportation company, transportation order number, etc., which helps to track logistics information; Related enterprise information set: It records in detail the enterprise information related to the message, such as enterprise name, address, contact information, etc. License information: Provides the company's business license, tax registration certificate and other relevant license information to prove the company's legal operating qualifications; Invoice information: displays the sales invoice information of the product, including invoice number, invoice date, sales amount, etc. Product details: lists all product information involved in the message, including product name, specification, model, quantity, unit price, etc.

[0047] Based on the above message information, the internal data structure is converted to the target message using the convert method of the converter object. For the converted data, see Figure 7 .

[0048] In step S3, a data linkage relationship is established between the comprehensive declaration system and the message conversion system, and the data linkage relationship is configured to implement the processing of the declaration data of the exporting country or the declaration data of the importing country: the customs declaration data obtained by the comprehensive declaration system is parsed and verified to see whether the customs declaration data conforms to the XSD standard and the message to be converted and the request of the destination country to be converted are obtained by analyzing the declared destination country, and sent to the message conversion system; the message conversion system parses the message to be converted according to the request, disassembles the field attributes and field attribute values ​​of the message according to the XSD document specification, matches and replaces the field attribute values ​​of the original message with the field attribute values ​​of the message of the destination country according to the conversion rules configured for the destination country message, encapsulates the converted field attribute values ​​to generate a declaration message of the destination country, pushes the declaration message to the corresponding customs declaration open platform, and receives the declaration result. If the declaration is successful, a release message is generated and sent to the comprehensive declaration system.

[0049] Among them, the parsing and verification of customs declaration data is to see if it complies with the XSD standard. XSD is the XML structure definition, XML SchemasDefinition. It is described in XML and follows XML syntax rules. An XML schema file describes the structure of an XML document. The basic rules are as follows: Must start with an XML declaration; Must have only one root element; The tag must match the closing tag; Elements are case sensitive; All elements must be closed; All elements must be nested correctly; You must use entities for special characters.

[0050] Parse and verify whether the customs declaration data complies with the XSD standard, that is, check whether the customs declaration data complies with the above basic rules. A specified XML Schema can be used to verify whether the customs declaration data complies with the XSD standard. The XML Schema can be the structure and content allowed by the standard customs declaration data table, defining the relevant elements, attributes, data types and the relationship between them in the customs declaration form; Declare the namespace used by the customs declaration data file and declare the reference to the corresponding XML Schema instance; Declare the corresponding namespace and the storage location of its corresponding XML Schema document through schema location; Based on the XML Schema and related declaration information, XMLLint or XML Schema Validator tool is used to verify whether the customs declaration data file complies with the XSD standard.

[0051] The schema location is used to specify the storage location of the XML Schema document corresponding to the namespace. For example: <xsi:schemaLocation="http: / / www.springframework.org / schema / beans" "http: / / www.springframework.org / schema / beans / spring-beans-2.5.xsd" / > The first part is the URI of the namespace, and the second part is the storage location of the XML Schema document corresponding to the namespace.

[0052] According to the XSD document specification, the field attributes and attribute values ​​of the message are disassembled. In the XSD standard, the definition of the field and its attribute value can be expressed as: Among them, xxx is the field name, and yyy is its corresponding attribute value. According to this specification, when disassembling the fields and their attributes of a message, you only need to extract the element name, attribute name and their corresponding values ​​to obtain the fields and their values ​​contained in the message for subsequent message conversion.

[0053] According to the conversion rules configured in the destination country message, the field attribute values ​​of the original message are matched and replaced with the field attribute values ​​of the destination country message, and the converted field attribute values ​​are encapsulated to generate the declaration message of the destination country.

[0054] For example, when converting messages between China and Singapore, taking the HSCODE field as an example, first find the HSCODE field in the Chinese customs declaration form according to the KMP matching algorithm, then extract it according to the corresponding value, match it according to the existing China to Singapore dictionary in the system to find the corresponding HSCODE value for Singapore, and write the value into the HSCODE field of the Singapore message. In this way, the HSCODE value from China is converted to Singapore, and the declaration message is pushed to the corresponding customs declaration open platform, and the declaration result is received. If the declaration is successful, a release message is generated and sent to the comprehensive declaration system.

[0055] The above-mentioned smart customs cross-border electronic document collaboration method has the following positive effects: High customs clearance efficiency: By entering the customs declaration and inspection data at one time, the system can intelligently distribute the data to the customs, inspection and quarantine and other port departments of the importing and exporting countries for declaration, which greatly reduces the company's repeated entry workload and improves customs clearance efficiency.

[0056] Reduce costs: By realizing data linkage, enterprises can avoid the need to repeatedly enter and declare data to port departments in different countries, saving manpower and time costs for enterprises.

[0057] Enhanced data accuracy: Automatic verification can be performed based on the customs declaration data of both countries, avoiding errors caused by human operation and improving data accuracy.

[0058] Realize information sharing and collaborative operations: Through the comprehensive declaration system, port departments of various countries can share some data and information that do not involve national security and trade security in real time, realizing collaborative operations and rapid customs clearance.

[0059] Improve the level of trade facilitation: The smart customs cross-border electronic document collaboration method simplifies the customs clearance process, improves customs clearance efficiency, provides more convenience for enterprises, and helps to improve the level of trade facilitation.

[0060] Based on the same concept, this embodiment also provides a system for cross-border electronic document collaboration of smart customs, please refer to Figure 8 , the smart customs cross-border electronic document collaboration system includes a comprehensive declaration system and a message conversion system; The comprehensive declaration system is created based on the standard version of the cargo declaration system of the international trade single window, so as to input the customs declaration data at one time, realize the intelligent decomposition of customs declaration data and declare it to the international port department; the customs declaration data is divided into the declaration data of the exporting country and the declaration data of the importing country; The message conversion system can convert the customs declaration data into data formats and message specifications that meet the different requirements of the port departments of different countries; A data linkage relationship is established between the comprehensive declaration system and the message conversion system, and the data linkage relationship is configured to realize the processing of the declaration data of the exporting country or the declaration data of the importing country: the customs declaration data obtained by the comprehensive declaration system is parsed and verified for correctness, and the message to be converted and the request of the destination country to be converted obtained by analyzing the declared destination country are sent to the message conversion system; the message conversion system parses the message to be converted according to the request, disassembles the field attributes of the message, converts the corresponding data according to the configuration of the destination country message, generates the declaration message of the destination country, and pushes the declaration message to the corresponding customs declaration open platform, and receives the declaration result. If the declaration is successful, a release message is generated and sent to the comprehensive declaration system.

[0061] Specifically, the message conversion system includes a message conversion rule module and a routing sending module; the message conversion module is used to obtain trade country information, create a message format entity, and bind it with country information and version information to identify and match the corresponding message format. The routing sending module is used to specify the transmission path and destination of the message; in the routing selection, the message conversion rule is bound to the actual routing information.

[0062] Among them, the message conversion module is further configured to: extract the message converter according to the configured message conversion rules, the message converter first converts the name of the original message field into the target message field name, converts the value of the original message field accordingly according to the destination country conversion dictionary, and then packages the message according to the message format of the destination country to obtain the converted message.

[0063] The comprehensive declaration system inputs basic information including CIQ code, declaration elements, customs QP, port code, place of origin, and data dictionary, and realizes declaration and receipt management including import integration, export integration, entry registration list integration, and exit registration list integration, which facilitates port departments to achieve rapid customs clearance and inspection by comparing the consistency and authenticity of declaration data.

[0064] For details, please see Fig. 9 , the goods are declared for the first time in the exporting country and released by the customs of the exporting country. The principal or agent fills in the export goods declaration form in the comprehensive declaration system. The comprehensive declaration system sends the exporting country and declaration data to the message conversion system, and pushes the declaration message to the exporting customs after message conversion. The goods are submitted for customs declaration at the customs of the exporting country, and the necessary documents and data are provided. After the customs of the exporting country passes the review, it will be released; and the declaration results will be fed back to the message conversion system, and the export release message will be sent to the comprehensive declaration system through the message conversion system.

[0065] The goods are transported to the importing country through international logistics. The goods are transported by international logistics companies and delivered to the importing country by sea or air.

[0066] Make a second declaration in the importing country, submit the data of the first declaration and the relevant documents of the importing country. After the goods arrive at the importing country, the importer or agent makes a second declaration through the comprehensive declaration system. The comprehensive declaration system sends the importing country and declaration data to the message conversion system, and pushes the declaration message to the import customs after message conversion. When declaring, submit the data of the first declaration and the relevant documents of the importing country, such as import licenses, contracts, etc.

[0067] The customs of the importing country verifies the authenticity and legality of the goods by comparing the data of the first declaration with the import documents. After the review is passed, the goods will be released. If necessary, inspection and supervision can be carried out. The declaration results will be fed back to the message conversion system, and the import release message will be sent to the comprehensive declaration system through the message conversion system.

[0068] In summary, the method and system of cross-border electronic document collaboration in smart customs have the technical effects of improving customs clearance efficiency, reducing costs, enhancing data accuracy, realizing information sharing and collaborative operations, and improving the level of trade facilitation. These effects have a positive effect on promoting the development of international trade and promoting the modernization of port departments.

[0069] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, if these changes fall within the scope of the claims of the present invention and their equivalents, they still fall within the protection scope of the present invention.

Claims

1. A method for cross-border electronic document collaboration for smart customs affairs, characterized in that: include: Based on the standard version of the cargo declaration system of the single window for international trade, a comprehensive declaration system is created to facilitate one-time entry of customs declaration data, intelligent decomposition of customs declaration data and declaration to international port departments; the customs declaration data is divided into export country declaration data and import country declaration data; Create a message conversion system to convert customs declaration data into data formats and message specifications that meet different requirements according to port departments in different countries; Establishing a data linkage relationship between the comprehensive declaration system and the message conversion system, wherein the data linkage relationship is configured to realize the processing of the declaration data of the exporting country or the declaration data of the importing country: the customs declaration data obtained by the comprehensive declaration system is parsed to verify whether the customs declaration data conforms to the XSD standard and the message to be converted and the request of the destination country to be converted are obtained by analyzing the declared destination country and sent to the message conversion system; The message conversion system parses the message to be converted according to the request, disassembles the field attributes and field attribute values ​​of the message according to the XSD document specification, matches and replaces the field attribute values ​​of the original message with the field attribute values ​​of the message of the destination country according to the conversion rules configured in the destination country message, encapsulates the converted field attribute values ​​to generate the declaration message of the destination country, pushes the declaration message to the corresponding customs declaration open platform, and receives the declaration result. If the declaration is successful, a release message is generated and sent to the comprehensive declaration system.

2. The method for cross-border electronic document collaboration for smart customs affairs as claimed in claim 1, characterized in that: When making the first customs declaration, after receiving the original message, the message conversion system parses the header information of the original message and searches the message format of the exporting country in the system according to the information of the exporting country; once a matching message format is found, the corresponding target message is automatically generated according to the bit operation algorithm, dictionary matching algorithm or KMP matching algorithm, and the target message is pushed to the customs declaration system of the exporting country, and the subsequent operation messages are continuously received; When making the second customs declaration, the message conversion system will parse the message header information again after receiving the message, and match the message format in the system according to the information of the importing country; once a matching message format is found, the corresponding message is automatically generated and pushed to the customs declaration system of the importing country, and subsequent operation messages are continuously received.

3. The method for cross-border electronic document collaboration for smart customs affairs as claimed in claim 1, characterized in that: After creating the message conversion system, configure the message conversion rules, destination country conversion dictionary, and routing sending items; When receiving the customs declaration data sent by the integrated declaration system, the pre-configured message converter is searched according to the destination country. The message converter first converts the name of the original message field into the name of the target message field, converts the value of the original message field according to the conversion dictionary of the destination country, and then packages the message according to the message format of the destination country to obtain the converted message; The destination router is queried according to the destination country, and the destination router sends the converted message out.

4. The method for cross-border electronic document collaboration for smart customs affairs as claimed in claim 3, characterized in that: The configuration message conversion rules, destination country conversion dictionary and routing sending items further include: Import or add trade country information to the message conversion system so that the corresponding message format can be identified and matched; at the same time, create a new message format entity in the message conversion rule and bind it with the country information and version information; New routing information is created on the message conversion system to specify the transmission path and destination of the message; in route selection, the message conversion rules are bound to the actual routing information.

5. The method for cross-border electronic document collaboration for smart customs affairs as claimed in claim 2, characterized in that: After the message conversion system generates a message, it determines whether there is an attachment. If so, it obtains the attachment, calls the file compression tool, generates the final message and pushes it through the TCP protocol.

6. The method for cross-border electronic document collaboration for smart customs affairs as claimed in claim 2, characterized in that: When converting customs code messages, first find the customs code field in the original customs declaration form according to the KMP matching algorithm, extract it according to the corresponding value, then match it according to the dictionary to find the customs code value corresponding to the target message, and write the value into the corresponding field of the target message.

7. The method for cross-border electronic document collaboration for smart customs affairs as claimed in claim 6, characterized in that: During the message conversion process, if there is code padding, the converted code is right-shifted or left-shifted to fill with 0s to meet the target message specification length.

8. The method for cross-border electronic document collaboration for smart customs affairs as claimed in claim 1, characterized in that: Parsing and verifying whether the customs declaration data complies with the XSD standard further includes: Specify an XML Schema to verify whether the customs declaration data complies with the XSD standard. The XML Schema is the structure and content allowed by the standard customs declaration data table; Declare the namespace used by the customs declaration data file and declare the reference to the corresponding XML Schema instance; Declare the corresponding namespace and the storage location of its corresponding XML Schema document through schema location; Based on the XML Schema and related declaration information, XMLLint or XML Schema Validator tool is used to verify whether the customs declaration data file complies with the XSD standard.

9. The method for cross-border electronic document collaboration for smart customs affairs as claimed in claim 1, characterized in that: The message conversion system is configured to construct a converter object, initialize the converter object, load the XSD document parsing specification and the conversion rules of the destination country message configuration; Instantiate the converter object, use the parse method of the converter object to parse the original message, and convert the XSD document parsing specification into the converter's internal data structure; The internal data structure is converted into a target message using the convert method of the converter object based on the conversion rules configured for the destination country message.

10. A system for cross-border electronic document collaboration for smart customs affairs, characterized in that: include: Comprehensive declaration system, message conversion system; The comprehensive declaration system is created based on the standard version of the cargo declaration system of the international trade single window, so as to input the customs declaration data at one time, realize the intelligent decomposition of the customs declaration data and declare it to the international port department; the customs declaration data is divided into the declaration data of the exporting country and the declaration data of the importing country; The message conversion system realizes the generation of data formats and message specifications that meet different requirements of the customs declaration data according to the port departments of different countries; A data linkage relationship is established between the comprehensive declaration system and the message conversion system, and the data linkage relationship is configured to realize the processing of the declaration data of the exporting country or the declaration data of the importing country: the customs declaration data obtained by the comprehensive declaration system is parsed to verify whether the customs declaration data conforms to the XSD standard and the message to be converted and the request of the destination country to be converted are obtained by analyzing the declared destination country and sent to the message conversion system; The message conversion system parses the message to be converted according to the request, disassembles the field attributes and field attribute values ​​of the message according to the XSD document specification, matches and replaces the field attribute values ​​of the original message with the field attribute values ​​of the message of the destination country according to the conversion rules configured in the destination country message, encapsulates the converted field attribute values ​​to generate the declaration message of the destination country, pushes the declaration message to the corresponding customs declaration open platform, and receives the declaration result. If the declaration is successful, a release message is generated and sent to the comprehensive declaration system.