Cross-border e-commerce automatic tax declaration and accounting system supporting multi-country tax systems

By constructing a cross-border tax dispute knowledge graph and automating the construction of evidence chains, the cross-border e-commerce automatic tax declaration system has solved the problems of low efficiency and data inconsistency in tax dispute handling, and achieved efficient response to tax disputes and data consistency management.

CN123118281APending Publication Date: 2026-11-17刘馨月
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611236959.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-14
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

The existing automated tax declaration system for cross-border e-commerce cannot effectively handle tax disputes, resulting in problems such as long evidence collection time, high labor costs, data inconsistency, and long processing cycles.

Method used

Construct an automated tax declaration and accounting system for cross-border e-commerce that supports multiple tax systems. The system includes a data acquisition module, a model building module, a dispute identification module, a strategy evaluation module, and a result output module. It constructs a cross-border tax dispute knowledge graph through a large language model, automatically identifies the focus of the dispute and generates response strategies, and realizes the construction of evidence chains and data synchronization.

Benefits of technology

Significantly shortens evidence preparation time, increases the success rate of handling tax disputes, reduces manual workload, ensures data consistency, shortens processing cycles, and enables full-process management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123118281A_ABST
    Figure CN123118281A_ABST
Patent Text Reader

Abstract

This invention discloses an automated tax declaration and accounting system for cross-border e-commerce supporting multiple tax systems, relating to the field of cross-border e-commerce tax compliance technology. This invention aims to solve the technical problem that existing technologies can only handle normal declaration processes and cannot address the entire process of tax dispute resolution. The system includes a data acquisition module, a model building module, a dispute identification module, a strategy evaluation module, a result output module, an evidence chain construction module, a progress tracking module, and a data synchronization module. This invention achieves automatic identification of tax dispute focus, automatic construction of transaction evidence chains, intelligent evaluation and generation of response strategies, full-process tracking of dispute resolution, and seamless data synchronization with the tax accounting and declaration module by constructing a large language model that integrates a cross-border tax dispute knowledge graph. This invention can significantly improve the efficiency and success rate of tax dispute resolution, reduce processing costs, ensure the consistency of tax data and financial data, and achieve standardized management of tax dispute resolution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cross-border e-commerce tax compliance technology, and in particular to an automated tax declaration and accounting system for cross-border e-commerce that supports multiple tax systems. Background Technology

[0002] With the rapid development of the global cross-border e-commerce industry, more and more companies are operating in multiple countries simultaneously. At the same time, tax authorities in various countries are continuously strengthening their supervision of cross-border e-commerce, leading to frequent tax disputes such as EU VAT audits, US sales tax audits, and Japanese JCT audits. According to the 2025 Global Cross-Border E-commerce Tax Compliance Report, over 68% of cross-border e-commerce companies have experienced at least one tax audit in the past three years, with a dispute rate as high as 82% for companies operating in major European and American markets. Tax dispute resolution has become one of the main compliance challenges faced by cross-border e-commerce companies.

[0003] Existing technologies include various automated tax declaration and accounting systems for cross-border e-commerce that support multiple tax systems. These systems can automatically collect order data, calculate tax amounts, and generate and submit tax returns, thus improving tax compliance efficiency for businesses to some extent. However, these existing technologies all share the following common drawbacks:

[0004] The existing system's functionality is limited to the normal tax filing process and cannot cover the tax dispute resolution stage. When companies face tax audits, tax assessments, or administrative reviews, all work needs to be done manually. Because evidence related to tax disputes is scattered across more than 10 heterogeneous systems, including ERP, WMS, TMS, payment systems, and e-commerce platforms, manually compiling the evidence chain requires verifying transaction data, logistics data, payment data, and filing data one by one. On average, the evidence compilation time for each case exceeds 200 hours, and it is prone to omissions or errors in evidence.

[0005] Existing systems are unable to generate effective response strategies based on historical cases. Handling cross-border tax disputes requires multi-skilled professionals proficient in multiple countries' tax laws, cross-border e-commerce operations, and multiple languages—such talent is globally scarce and expensive. Due to a lack of systematic support, companies often have to react passively when facing tax disputes; the average success rate for Chinese cross-border e-commerce companies is only 37%, far lower than the 62% for European and American domestic companies.

[0006] The existing system cannot achieve seamless integration between tax dispute resolution and normal tax accounting and declaration. After a tax dispute is resolved, companies need to manually enter the adjusted tax payable, penalties, late payment fees, and other data into the tax accounting system and the financial system. This is not only inefficient but also prone to inconsistencies between tax and financial data, leading to new compliance risks.

[0007] The existing system lacks tracking and management of the entire tax dispute resolution process. Tax dispute resolution is a long process with many steps and involves complex personnel. Manual management is prone to problems such as overdue tasks, chaotic processes, and unclear responsibilities, which further prolongs the dispute resolution cycle. On average, each case takes 6 to 18 months to resolve, and some complex cases even take more than 3 years.

[0008] Therefore, there is an urgent need for an automated tax declaration and accounting system for cross-border e-commerce that can support the entire process of tax disputes in order to solve the aforementioned problems of existing technologies. Summary of the Invention

[0009] This invention overcomes the shortcomings of existing technologies and provides an automated tax declaration and accounting system for cross-border e-commerce that supports multiple national tax systems.

[0010] To achieve the above objectives, the technical solution adopted by the present invention is as follows: an automatic tax declaration and accounting system for cross-border e-commerce that supports multiple tax systems, including: a data acquisition module, used to acquire data on tax dispute laws and regulations of various countries, historical dispute case data of global cross-border e-commerce, historical tax declaration data of enterprises, evidence data of the entire transaction chain of enterprises, and dispute notice data sent by tax authorities;

[0011] The model building module is used to construct a large language model for intelligent response to tax disputes, which integrates a knowledge graph of cross-border tax disputes, based on the tax dispute laws and regulations data of the aforementioned countries and historical dispute case data of global cross-border e-commerce.

[0012] The dispute identification module is used to input the dispute notification data into the tax dispute intelligent response model to obtain information on the focus of the dispute and the core demands of the tax authorities.

[0013] The strategy evaluation module is used to generate multiple candidate response strategies and calculate the probability of winning and expected cost of each strategy based on the dispute focus information, the core demands of the tax authorities, the company's historical tax declaration data, and the company's full-chain transaction evidence data.

[0014] The results output module is used to select the optimal response strategy based on the probability of winning and expected costs of each candidate response strategy, and to generate standardized defense materials, evidence lists, and dispute resolution timelines.

[0015] In a preferred embodiment of the present invention, the data acquisition module establishes a two-way communication connection with the enterprise's internal multi-business systems and external public legal data sources. It collects the enterprise's historical tax declaration data and the enterprise's full-chain transaction evidence data from the enterprise's internal multi-business systems, collects tax dispute laws and regulations data from various countries and global cross-border e-commerce historical dispute case data from the external public legal data sources, receives dispute notification data sent by tax authorities, performs unified processing operations on all collected and received multi-source heterogeneous data, generates structured data, and stores it in the system database.

[0016] In a preferred embodiment of the present invention, the model building module is based on a large language model. It extracts tax-related entities and logical relationships between entities from the tax dispute laws and regulations data of various countries and the historical dispute case data of global cross-border e-commerce through entity extraction and relation extraction techniques. It then constructs a structured cross-border tax dispute knowledge graph and embeds the cross-border tax dispute knowledge graph as an external knowledge base into the reasoning process of the large language model to form the intelligent response model for tax disputes.

[0017] In a preferred embodiment of the present invention, the dispute identification module performs text semantic parsing on the dispute notification data sent by the tax authority, extracts basic case information and converts it into a structured format that the system can process, inputs the structured basic case information into the tax dispute intelligent response model, triggers the model's reasoning and analysis process, and outputs dispute focus information and core demands information of the tax authority associated with the basic case information.

[0018] In a preferred embodiment of the present invention, the cross-border e-commerce automatic tax declaration and accounting system further includes an evidence chain construction module. The evidence chain construction module, based on the principle of consistency of the flow of goods, funds, and invoices, uses the unique transaction identifier as the association key to automatically associate and match various sub-data in the enterprise's full-chain transaction evidence data, verifies the validity of the associated data, generates a structured transaction evidence chain document, and classifies and organizes it according to the evidence standards of tax authorities in various countries.

[0019] In a preferred embodiment of the present invention, the strategy evaluation module extracts case feature vectors from relevant information of the current disputed case, retrieves similar historical cases from the global cross-border e-commerce historical dispute case data based on the case feature vectors, uses a machine learning classification model, and combines the judgment results of the similar historical cases to calculate the probability of winning for each candidate response strategy, and calculates the corresponding expected cost based on the cost composition of each candidate response strategy.

[0020] In a preferred embodiment of the present invention, the strategy evaluation module combines the dispute focus information, the core demands information of the tax authorities, and the cross-border tax dispute knowledge graph to generate multiple candidate response strategies with different dimensions. The risk level of each candidate response strategy is evaluated, and all candidate response strategies are weighted and ranked according to the three dimensions of the probability of winning, expected cost, and risk level. The candidate response strategy ranked first is selected as the optimal response strategy.

[0021] In a preferred embodiment of the present invention, the result output module pre-stores templates for defense materials, evidence lists, and dispute resolution procedures as required by tax authorities of various countries. It maps the defense reasons, evidence information, and time node information in the optimal response strategy to the designated positions of the corresponding templates, generates standardized documents that meet the format requirements of the corresponding national tax authorities, and adds electronic signatures and trusted timestamps to the generated documents.

[0022] In a preferred embodiment of the present invention, the cross-border e-commerce automatic tax declaration and accounting system further includes a progress tracking module. The progress tracking module generates a dispute resolution task list containing multiple sub-tasks based on the dispute resolution timetable, sends reminder notifications to the corresponding responsible persons before the deadline of each sub-task, receives real-time feedback on task completion status and updates the progress of the task list, and automatically adjusts the dispute resolution timetable and sends change notifications when a task is overdue or the process changes.

[0023] In a preferred embodiment of the present invention, the cross-border e-commerce automatic tax declaration and accounting system further includes a data synchronization module. The data synchronization module synchronizes the final dispute resolution result data to the automatic tax accounting and declaration module of the system. The automatic tax accounting and declaration module adjusts the tax accounting data for the corresponding declaration period according to the dispute resolution result data, generates an adjusted tax return form and automatically submits it to the tax authorities of the corresponding country, and simultaneously synchronizes the adjusted data to the enterprise's financial system.

[0024] This invention addresses the shortcomings of the prior art and has the following beneficial effects:

[0025] (1) This invention, through an evidence chain construction module, automatically associates transaction data scattered across multiple heterogeneous systems based on the principle of consistency among the flow of goods, funds, and invoices, constructs a complete structured transaction evidence chain document, and classifies, organizes, and numbers it according to the requirements of tax authorities in various countries. This significantly shortens the evidence organization time, greatly improves the efficiency of evidence organization, and avoids evidence omissions or errors that are prone to occur during manual organization.

[0026] (2) This invention constructs a large language model for intelligent response to tax disputes that integrates a cross-border tax dispute knowledge graph. This model can automatically identify the focus of the dispute and the core demands of the tax authorities in the tax dispute notification, generate multiple candidate response strategies based on a vast global database of historical dispute cases, and comprehensively evaluate the strategies from three dimensions: probability of victory, expected cost, and risk level, selecting the optimal response strategy. This effectively improves the success rate of enterprises in handling tax disputes while reducing their reliance on scarce, multi-skilled tax professionals.

[0027] (3) This invention automates the entire process of tax dispute resolution, including repetitive tasks such as evidence preparation, material generation, and progress tracking, which are all completed automatically by the system, greatly reducing manual workload. At the same time, the system can identify high-risk response strategies in advance, helping enterprises avoid unnecessary fines and late payment fees.

[0028] (4) This invention, through a data synchronization module, automatically synchronizes the adjusted tax payable, fines, late payment fees, and other data to the system's automatic tax accounting and declaration module and the enterprise's financial system after the dispute resolution result is finally determined, thus automatically completing the adjustment and correction of tax accounting data. This completely solves the problem of data inconsistency caused by manual data entry and avoids new compliance risks.

[0029] (5) This invention breaks down the entire dispute resolution process into multiple standardized sub-tasks through a progress tracking module, automatically assigns them to the corresponding responsible persons, and sends reminder notifications before the deadline. The system tracks the task completion progress in real time, and automatically adjusts the timetable and sends change notifications when a task is overdue or the process changes. This significantly shortens the dispute resolution cycle while achieving traceability and manageability of the resolution process. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0031] Figure 1 This is a system architecture diagram of a preferred embodiment of the present invention; Detailed Implementation

[0032] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0033] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein. Therefore, the scope of protection of the invention is not limited to the specific embodiments disclosed below.

[0034] This system adopts a containerized distributed microservice architecture, which can be deployed on any mainstream cloud platform or local server cluster. Each module communicates through a standardized RESTful API interface, supporting independent upgrades and horizontal scaling. The system is divided into four logical layers: data layer, model layer, application layer, and presentation layer. The data layer is responsible for the unified storage and management of multi-source heterogeneous data; the model layer carries the training and inference of core algorithm models; the application layer implements the entire business logic of tax dispute handling; and the presentation layer provides users with a visual operation interface.

[0035] An automated tax declaration and accounting system for cross-border e-commerce that supports multiple tax systems, including:

[0036] The data acquisition module is used to acquire data on tax dispute laws and regulations of various countries, historical dispute cases of global cross-border e-commerce, historical tax declaration data of enterprises, evidence data of the entire transaction chain of enterprises, and dispute notices sent by tax authorities.

[0037] The data acquisition module establishes bidirectional communication connections with multiple internal business systems and external public legal data sources. It collects historical tax declaration data and full-chain evidence data of transactions from the internal business systems, and collects data on tax dispute laws and regulations of various countries and historical dispute cases of global cross-border e-commerce from external public legal data sources. It also receives dispute notices sent by tax authorities and performs unified processing operations on all collected and received multi-source heterogeneous data to generate structured data and store it in the system database.

[0038] like Figure 1As shown, the data acquisition module serves as the system's data input port. It establishes a bidirectional encrypted communication link based on the TLS 1.3 protocol to achieve secure data interaction with multiple internal business systems and external public legal data sources. These internal business systems include ERP, WMS, TMS, payment systems, e-commerce platforms, and tax filing systems. The data acquisition module collects historical tax filing data and full-chain transaction evidence data from these systems via API interfaces. This full-chain transaction evidence data includes order data, logistics tracking data, payment voucher data, invoice data, and customs declaration data.

[0039] External public legal data sources include official websites of tax authorities in various countries, global legal databases, and the International Judgments Online website. The data acquisition module regularly collects data on tax dispute laws and regulations and historical dispute cases in global cross-border e-commerce from these data sources using distributed web crawling technology. The collection frequency can be dynamically adjusted according to the policy update frequency of each country. For paper or PDF format tax authority dispute notices, the data acquisition module converts them into editable text format using optical character recognition technology that has been specially refined for tax documents.

[0040] The data acquisition module performs a unified preprocessing operation on all collected and received raw data to generate standardized structured data. The preprocessing process begins with data cleaning. For numerical data, outliers are identified by calculating the Z-score, using the following formula:

[0041] ;

[0042] In the formula, The Z-score value of the data point. The value of the data point to be detected. This is the mean of all samples in this data field. This represents the standard deviation of all samples in this data field.

[0043] when When a data point is identified as an outlier, the system automatically marks it and prompts the user for manual review. For text data, redundant spaces, newlines, and special characters are removed using regular expressions. Data deduplication is then performed; the system generates a unique MD5 hash value for each data entry and identifies and removes duplicate data by comparing hash values. For missing values, a method based on the mean of similar data is used for imputation; the calculation formula is as follows:

[0044] ;

[0045] In the formula, For fill value, The number of valid data of the same type, For the first The numerical value of a valid data set of the same type.

[0046] After preprocessing, the data is stored in the corresponding databases according to their types: structured business data is stored in relational databases, tax knowledge data is stored in graph databases, feature vector data is stored in vector databases, and hot data is stored in cache databases.

[0047] The model building module is used to construct a large language model that integrates cross-border tax dispute knowledge graphs to create an intelligent tax dispute response model, based on tax dispute laws and regulations data from various countries and historical dispute case data from global cross-border e-commerce.

[0048] The model building module is based on a large language model. It extracts tax entities and logical relationships between entities from tax dispute laws and regulations data of various countries and historical dispute cases of global cross-border e-commerce through entity extraction and relation extraction techniques. It constructs a structured cross-border tax dispute knowledge graph and embeds the cross-border tax dispute knowledge graph as an external knowledge base into the reasoning process of the large language model to form an intelligent response model for tax disputes.

[0049] The model building module is based on an open-source large language model and uses efficient parameter fine-tuning technology to adapt it specifically for the cross-border tax field.

[0050] The model building module first utilizes the entity extraction and relation extraction capabilities of the large language model to extract tax-related entities and logical relationships between them from tax dispute laws and regulations data of various countries and historical dispute cases of global cross-border e-commerce. Tax-related entities include legal provisions, points of contention, types of evidence, judgment results and response strategies, while logical relationships between entities include application, cause, support and rebuttal.

[0051] Based on the extracted entities and relationships, the model building module constructs a cross-border tax dispute knowledge graph represented in the form of triples, with the triple structure being (head entity, relationship, tail entity).

[0052] To achieve deep integration of knowledge graphs and large language models, the model building module uses the TransE model to learn vector representations of entities and relations in the knowledge graph, mapping each entity and relation to a low-dimensional dense vector. The loss function of the TransE model is:

[0053] ;

[0054] In the formula, It is a set of positive triples. The set of negative triples For margin parameters, Let L2 distance function, and These are the head entity vectors of the positive and negative triples, respectively. For relation vectors, and These are the tail entity vectors of the positive and negative triples, respectively. By minimizing the above loss function, the model can learn semantic vector representations of entities and relations.

[0055] The model building module embeds the learned knowledge graph vectors as an external knowledge base into the reasoning process of the large language model. A knowledge attention mechanism is added to each layer of the Transformer encoder in the large language model to fuse the knowledge graph vectors with the text vectors. The fusion formula is as follows:

[0056] ;

[0057] In the formula, The fused feature vector The text feature vectors output by the large language model. For knowledge graph feature vectors, These are weighting coefficients used to balance the importance of textual and knowledge information. After fusion, the final intelligent tax dispute response model is formed.

[0058] The dispute identification module is used to input dispute notification data into the tax dispute intelligent response model to obtain information on the focus of the dispute and the core demands of the tax authorities.

[0059] The dispute identification module performs text semantic analysis on the dispute notice data sent by the tax authorities, extracts basic case information and converts it into a structured format that the system can process. The structured basic case information is then input into the tax dispute intelligent response model, triggering the model's reasoning and analysis process, and outputting dispute focus information and the tax authorities' core demands that are associated with the basic case information.

[0060] The dispute identification module receives the dispute notification text data transmitted by the data acquisition module. First, it performs preprocessing operations such as word segmentation, stop word removal, and part-of-speech tagging on the text. Then, it extracts the basic case information and converts it into a structured format that the system can process. The basic case information includes the case number, the country involved, the time period involved, the transaction amount involved, the name and contact information of the tax authority.

[0061] The dispute identification module concatenates structured case information with the original dispute notification text and inputs it into the tax dispute intelligent response model. The model encodes the input text using a multi-layer Transformer encoder, extracting deep semantic features and integrating relevant knowledge from a knowledge graph through a knowledge attention mechanism to enhance reasoning capabilities. Finally, two fully connected classifiers output the dispute focus information and the tax authority's core demands, respectively. The output layer of the classifiers uses the Softmax activation function, calculated as follows:

[0062] ;

[0063] In the formula, For the first The predicted probabilities of each category, For fully connected networks The output value of each neuron The total number of categories. The system selects the category with the highest predicted probability as the final identification result, and stores the disputed information and the tax authority's core demands along with the corresponding basic case information.

[0064] The cross-border e-commerce automatic tax declaration and accounting system also includes an evidence chain construction module. Based on the principle of consistency between the flow of goods, funds, and invoices, the evidence chain construction module uses the unique transaction identifier as the association key to automatically associate and match various sub-data in the evidence data of the entire transaction chain of the enterprise, verify the validity of the associated data, generate a structured transaction evidence chain document, and classify and organize it according to the evidence standards of tax authorities in various countries.

[0065] The evidence chain construction module, based on the principle of consistency among the flow of goods, funds, and invoices, automatically associates and matches various sub-data in the enterprise's full-chain transaction evidence data, using the unique transaction identifier as the association key. The unique transaction identifier is generated by the system using the SHA-256 hash algorithm based on the order number, logistics tracking number, and payment tracking number, ensuring the uniqueness and immutability of each transaction's identifier. The generation formula is as follows:

[0066] ;

[0067] In the formula, As a unique identifier for the transaction, For order number, For logistics tracking number, For payment order number, This is a separator used to avoid ambiguity when different numbers are concatenated.

[0068] The evidence chain construction module performs timestamp consistency verification and data integrity verification on the associated data. Timestamp consistency verification compares the timestamps of the three stages—goods flow, funds flow, and invoice flow—to determine whether the transaction process is logically consistent. The verification formula is:

[0069] ;

[0070] In the formula, For order generation time, For logistics delivery time, For payment completion time, The date the invoice was issued. This refers to the time of receipt of the logistics package.

[0071] If the above inequality does not hold, the transaction data is determined to have an abnormal timestamp, and the system automatically marks it and prompts the user to verify it. Data integrity verification involves calculating the SHA-256 hash value of the data and comparing it with the stored original hash value. If they match, the data is considered intact; otherwise, the data is considered tampered with. After successful verification, the evidence chain construction module generates a structured transaction evidence chain document, which is then categorized and numbered according to the evidence standards of tax authorities in various countries.

[0072] The strategy evaluation module is used to generate multiple candidate response strategies and calculate the probability of success and expected cost of each strategy based on information on the points of contention, information on the core demands of the tax authorities, historical tax declaration data of the enterprise, and evidence data of the entire transaction chain of the enterprise.

[0073] The strategy evaluation module extracts case feature vectors from relevant information of current disputed cases, retrieves similar historical cases from global cross-border e-commerce historical dispute case data based on case feature vectors, uses machine learning classification models, and combines the judgment results of similar historical cases to calculate the probability of winning for each candidate response strategy, and calculates the corresponding expected cost based on the cost composition of each candidate response strategy.

[0074] The strategy evaluation module combines information on the focus of the dispute, information on the core demands of the tax authorities, and a knowledge graph of cross-border tax disputes to generate multiple candidate response strategies in different dimensions. It evaluates the risk level of each candidate response strategy, and ranks all candidate response strategies by weighting them based on three dimensions: probability of winning, expected cost, and risk level. The candidate response strategy ranked first is selected as the optimal response strategy.

[0075] The strategy evaluation module extracts case feature vectors containing multiple dimensions from relevant information of current disputed cases. Based on these feature vectors, it retrieves similar historical cases from global cross-border e-commerce historical disputed case data. The system pre-stores the feature vectors of all historical cases in a vector database and creates an index. During retrieval, the similarity between cases is determined by calculating the cosine similarity, using the following formula:

[0076] ;

[0077] In the formula, This is the feature vector of the current case. For the feature vectors of historical cases, The cosine similarity between the two cases. is the dimension of the feature vector. The system selects several historical cases with the highest similarity as reference cases.

[0078] The strategy evaluation module combines information on the points of contention, the core demands of the tax authorities, and a cross-border tax dispute knowledge graph to generate multiple candidate response strategies across different dimensions. Each candidate strategy includes grounds for defense, evidence submission plans, and communication strategies. The strategy evaluation module uses a pre-trained logistic regression model, combined with the judgment results of reference cases, to calculate the probability of success for each candidate response strategy. The calculation formula is as follows:

[0079] ;

[0080] In the formula, For the probability of winning, For the intercept term, For the first The regression coefficients of each feature, For the first The values ​​of each feature, The number of features is used. Simultaneously, the strategy evaluation module calculates the corresponding expected cost based on the cost composition of each candidate response strategy. This cost composition includes legal fees, penalties, late fees, time costs, and reputational costs. The calculation formula is as follows:

[0081] ;

[0082] In the formula, For the expected cost, For attorney fees, For the probability of winning, The amount of the fine. This is the amount of late payment fee. For time cost, For reputational costs.

[0083] The strategy evaluation module assesses the risk level of each candidate response strategy, categorizing it into low, medium, and high risk levels. Considering the probability of victory, expected cost, and risk level, the strategy evaluation module assigns a weighted ranking to all candidate response strategies. The ranking score is calculated using the following formula:

[0084] ;

[0085] In the formula, To score the ranking, , , These are the weighting coefficients for the probability of winning, expected costs, and risk level, respectively. , The maximum expected cost among all candidate strategies. This represents the numerical value corresponding to the risk level. The strategy evaluation module selects the candidate response strategy with the highest ranking score as the optimal response strategy.

[0086] The results output module is used to select the optimal response strategy based on the probability of winning and expected costs of each candidate response strategy, and to generate standardized defense materials, evidence lists, and dispute resolution timelines.

[0087] The output module pre-stores templates for defense materials, evidence lists, and dispute resolution procedures as required by tax authorities in various countries. It maps the defense reasons, evidence information, and time nodes in the optimal response strategy to the specified locations in the corresponding templates, generates standardized documents that meet the format requirements of the corresponding national tax authorities, and adds electronic signatures and trusted timestamps to the generated documents.

[0088] The output module pre-stores templates for appeal materials, evidence lists, and dispute resolution procedures as required by tax authorities in various countries. These templates are stored in Extensible Markup Language (EXPLAIN) format and support user-defined editing. The output module maps the arguments, evidence, and timelines from the optimal response strategy to designated locations within the corresponding templates. This mapping process utilizes XPath-based node location technology to ensure accurate information filling.

[0089] After the data is filled in, the output module converts the template into a standardized document that conforms to the format requirements of the corresponding national tax authority, and adds an electronic signature and a trusted timestamp to the generated document. The electronic signature is generated using the RSA asymmetric encryption algorithm, and the calculation formula is as follows:

[0090] ;

[0091] In the formula, For electronic signatures, The SHA-256 hash value of the document. For private key, The modulus is used. The trusted timestamp is obtained from the National Time Service Center, ensuring the document's generation time has legal validity.

[0092] The cross-border e-commerce automatic tax declaration and accounting system also includes a progress tracking module. The progress tracking module generates a dispute resolution task list containing multiple sub-tasks based on the dispute resolution timetable. Before the deadline of each sub-task, it sends a reminder notification to the corresponding person in charge, receives real-time feedback on task completion status and updates the task list progress. When a task is overdue or the process changes, it automatically adjusts the dispute resolution timetable and sends a change notification.

[0093] The progress tracking module, based on the dispute resolution timeline and optimal response strategies, breaks down the entire dispute resolution process into multiple sub-tasks and assigns them to corresponding responsible persons. Before the deadline for each sub-task, the module sends reminder notifications to the responsible persons through various means, receives real-time feedback on task completion status, and updates the task list progress. When a task is overdue or the process changes, the progress tracking module automatically adjusts the dispute resolution timeline and sends change notifications to all relevant personnel.

[0094] The cross-border e-commerce automatic tax declaration and accounting system also includes a data synchronization module. The data synchronization module synchronizes the final dispute resolution result data to the system's automatic tax accounting and declaration module. The automatic tax accounting and declaration module adjusts the tax accounting data for the corresponding declaration period based on the dispute resolution result data, generates the adjusted tax return form, and automatically submits it to the tax authorities of the corresponding country. At the same time, it synchronizes the adjusted data to the enterprise's financial system.

[0095] After the dispute resolution result is finalized, the data synchronization module synchronizes the dispute resolution result data to the system's automatic tax accounting and filing module. The automatic tax accounting and filing module adjusts the tax accounting data for the corresponding filing period based on the dispute resolution result data, generates the adjusted tax return, and automatically submits it to the tax authorities of the corresponding country. Simultaneously, the data synchronization module synchronizes the adjusted accounting data and filing data to the company's financial system, ensuring consistency between the company's financial and tax data.

[0096] Example

[0097] A cross-border e-commerce company, which mainly operates in the EU, received a VAT audit notice from the German tax authorities, alleging that the company had made false sales declarations in the second quarter of 2024.

[0098] When a company uses this system to handle tax disputes, the data acquisition module first collects all transaction and declaration data for the specified period from the company's internal business system, collects relevant German VAT laws and regulations and historical dispute case data from external data sources, and converts the PDF audit notice into text format.

[0099] The dispute identification module performs semantic analysis on the audit notice, extracts basic case information, and identifies the focus of the dispute as the e-commerce platform's repeated declaration of sales revenue withheld and paid on its behalf. The tax authority's core demand is to provide the platform's withholding and payment vouchers and bank statement proof.

[0100] Based on the principle of consistency among the three flows (order data, logistics data, payment data, and declaration data) of all transactions involved in the case, the evidence chain construction module correlates and matches them to generate a complete transaction evidence chain document.

[0101] The strategy evaluation module extracts case feature vectors, retrieves similar historical cases, generates multiple candidate response strategies, evaluates them, and determines that submitting the platform withholding and payment voucher and applying for correction is the optimal response strategy.

[0102] The output module generates a list of defense materials and evidence that meet the requirements of the German tax authorities, and adds electronic signatures and trusted timestamps.

[0103] The progress tracking module generates a task list and tracks processing progress. The company submits its appeal materials within the stipulated timeframe. After review, the German tax authorities accepted the company's appeal and revoked the original audit decision.

[0104] The data synchronization module synchronizes the dispute resolution results to the automatic tax accounting and declaration module and the enterprise's financial system, automatically completing the tax data adjustment and correction declaration.

[0105] Based on the preferred embodiments of the present invention described above, those skilled in the art can make various changes and modifications without departing from the inventive concept. The technical scope of this invention is not limited to the contents of the specification, but must be determined according to the scope of the claims.

Claims

1. A cross-border e-commerce automated tax declaration and accounting system supporting multiple tax systems, characterized in that: include: The data acquisition module is used to acquire data on tax dispute laws and regulations of various countries, historical dispute cases of global cross-border e-commerce, historical tax declaration data of enterprises, evidence data of the entire transaction chain of enterprises, and dispute notices sent by tax authorities. The model building module is used to construct a large language model for intelligent response to tax disputes, which integrates a knowledge graph of cross-border tax disputes, based on the tax dispute laws and regulations data of the aforementioned countries and historical dispute case data of global cross-border e-commerce. The dispute identification module is used to input the dispute notification data into the tax dispute intelligent response model to obtain information on the focus of the dispute and the core demands of the tax authorities. The strategy evaluation module is used to generate multiple candidate response strategies and calculate the probability of winning and expected cost of each strategy based on the dispute focus information, the core demands of the tax authorities, the company's historical tax declaration data, and the company's full-chain transaction evidence data. The results output module is used to select the optimal response strategy based on the probability of winning and expected costs of each candidate response strategy, and to generate standardized defense materials, evidence lists, and dispute resolution timelines.

2. The cross-border e-commerce automatic tax declaration and accounting system supporting multiple tax systems as described in claim 1, characterized in that: The data acquisition module establishes a two-way communication connection with the enterprise's internal multi-business systems and external public legal data sources. It collects historical tax declaration data and full-chain evidence data of the enterprise's transactions from the internal multi-business systems, and collects data on tax dispute laws and regulations of various countries and historical dispute cases of global cross-border e-commerce from the external public legal data sources. It also receives dispute notices sent by tax authorities and performs unified processing operations on all collected and received multi-source heterogeneous data to generate structured data and store it in the system database.

3. The cross-border e-commerce automatic tax declaration and accounting system supporting multiple tax systems as described in claim 1, characterized in that: The model building module is based on a large language model. It extracts tax-related entities and logical relationships between entities from the tax dispute laws and regulations data of various countries and the historical dispute case data of global cross-border e-commerce through entity extraction and relation extraction techniques. It constructs a structured cross-border tax dispute knowledge graph and embeds the cross-border tax dispute knowledge graph as an external knowledge base into the reasoning process of the large language model to form the intelligent response model for tax disputes.

4. The cross-border e-commerce automatic tax declaration and accounting system supporting multiple tax systems as described in claim 1, characterized in that: The dispute identification module performs text semantic parsing on the dispute notification data sent by the tax authority, extracts basic case information, and converts it into a structured format that the system can process. The structured basic case information is then input into the tax dispute intelligent response model, triggering the model's reasoning and analysis process. The model outputs dispute focus information and the tax authority's core demands information that are associated with the basic case information.

5. The cross-border e-commerce automatic tax declaration and accounting system supporting multiple tax systems as described in claim 1, characterized in that: The cross-border e-commerce automatic tax declaration and accounting system also includes an evidence chain construction module. Based on the principle of consistency among the flow of goods, funds, and invoices, the evidence chain construction module uses the unique transaction identifier as the association key to automatically associate and match various sub-data in the enterprise's full-chain transaction evidence data, verify the validity of the associated data, generate a structured transaction evidence chain document, and classify and organize it according to the evidence standards of tax authorities in various countries.

6. The cross-border e-commerce automatic tax declaration and accounting system supporting multiple tax systems as described in claim 1, characterized in that: The strategy evaluation module extracts case feature vectors from relevant information of the current disputed case, retrieves similar historical cases from the global cross-border e-commerce historical dispute case data based on the case feature vectors, uses a machine learning classification model, and combines the judgment results of the similar historical cases to calculate the probability of winning for each candidate response strategy, and calculates the corresponding expected cost based on the cost composition of each candidate response strategy.

7. The cross-border e-commerce automatic tax declaration and accounting system supporting multiple tax systems as described in claim 1, characterized in that: The strategy evaluation module combines the information on the points of contention, the core demands of the tax authorities, and the cross-border tax dispute knowledge graph to generate multiple candidate response strategies with different dimensions. It evaluates the risk level of each candidate response strategy and ranks all candidate response strategies by weighting them based on the three dimensions of probability of winning, expected cost, and risk level. The candidate response strategy ranked first is selected as the optimal response strategy.

8. The cross-border e-commerce automatic tax declaration and accounting system supporting multiple tax systems as described in claim 1, characterized in that: The output module pre-stores templates for defense materials, evidence lists, and dispute resolution procedures as required by tax authorities in various countries. It maps the defense reasons, evidence information, and time node information in the optimal response strategy to the specified positions of the corresponding templates, generates standardized documents that meet the format requirements of the corresponding national tax authorities, and adds electronic signatures and trusted timestamps to the generated documents.

9. The cross-border e-commerce automatic tax declaration and accounting system supporting multiple tax systems as described in claim 1, characterized in that: The cross-border e-commerce automatic tax declaration and accounting system also includes a progress tracking module. The progress tracking module generates a dispute resolution task list containing multiple sub-tasks based on the dispute resolution timetable. Before the deadline of each sub-task, it sends a reminder notification to the corresponding person in charge, receives real-time feedback on task completion status and updates the task list progress. When a task is overdue or the process changes, it automatically adjusts the dispute resolution timetable and sends a change notification.

10. The cross-border e-commerce automatic tax declaration and accounting system supporting multiple tax systems as described in claim 1, characterized in that: The cross-border e-commerce automatic tax declaration and accounting system also includes a data synchronization module. The data synchronization module synchronizes the final dispute resolution result data to the system's automatic tax accounting and declaration module. The automatic tax accounting and declaration module adjusts the tax accounting data for the corresponding declaration period based on the dispute resolution result data, generates the adjusted tax return form, and automatically submits it to the tax authorities of the corresponding country. At the same time, it synchronizes the adjusted data to the enterprise's financial system.