Verify a Chinese XML Invoice
Check an original Chinese digital invoice XML file, match it to the issuer’s PDF and choose the right route for tax verification.
Verify a Chinese tax invoice or check a commercial invoice’s issuer.

The attachment ends in .xml. Your file viewer shows nested fields without the invoice layout you expected. Keep that attachment as it arrived. If the issuer sent a PDF as well, open the PDF to read the invoice and use the XML for a supported data-file check. Compare the invoice number and seller across the two before you save them as evidence for the same purchase.
Mainland China's fully digital invoice, the 数电发票, can be delivered in XML as well as in PDF or OFD formats. The XML contains structured invoice data. What you can verify from it depends on where you received it, which service you use, and what result that service returns. The workflow below is for an overseas buyer handling an actual attachment, including the situations in which the other half of the file pair is missing or inconsistent.
Keep the issuer's attachment
Save the exact file you received and a record of how the issuer sent it. If an authorized billing portal provided it, retain the download or invoice reference. If the supplier attached it to an email, keep the message that identifies the seller or order. When both PDF and XML arrive together, record both under the same purchase reference pending your comparison. Their file names may have different endings or start with a date. Read the invoice identifiers before treating them as a pair.
Leave the issuer's XML intact for verification. A spreadsheet export, an XML file written by your accounting software or a browser's saved copy may be useful for internal work. Keep those versions separate. They can add, drop or rearrange fields, and they may have no signature from the issuing system. Changing a PDF's extension or generating XML from the amounts you can read produces a different file from the one you received.
The tax authority's interpretation of the national fully digital invoice announcement describes the XML delivery format alongside PDF and OFD. The Ministry of Finance's electronic accounting voucher data standard notice lists XML fully digital invoices among the supported electronic vouchers. These sources explain why a structured attachment may arrive. Your reviewer still needs to identify the exact invoice and know which system performed the check.
Choose a route from the files
- Original XML and original PDF
- Pair the files by invoice number and seller. Use the PDF for a line-by-line review, and choose a service that accepts your original XML or PDF for the tax record check.
- Original XML only
- Use an official file import if available for the invoice, or request the issuer's readable version. Preserve the XML while you wait. A full view helps when you need to compare the item's description and tax lines.
- Readable PDF only
- Use the original PDF as supplied, or copy the required fields for manual verification. Ask for the XML if your accounting process specifically needs the electronic data message.
- Screenshot and an unexplained XML attachment
- Confirm the file's source through the supplier's billing channel. A screenshot may help you identify the invoice, but it does not establish where the accompanying data file came from.
Some issuers routinely supply a pair. AWS China's digital fapiao instructions, for example, describe delivery of XML and PDF by default and a separate support request for OFD. That is an example of one issuer's workflow. For your own invoice, use the delivery method the named issuer confirms. See downloading a Chinese electronic invoice for the appropriate retrieval route when the original is missing.
Compare the invoice in both formats

Start with the invoice number. For a fully digital invoice, use the complete number shown next to 发票号码. Then compare the issue date and the seller's name and taxpayer identifier. Keep the seller and buyer sections separate. In the readable file, the labels 销售方 and 购买方 identify the parties. If your XML application gives you a field list, match the business roles and identifiers with the readable file. A file preview that groups all names together may hide the difference.
Next compare the numeric tax-inclusive total, the currency if presented, and a distinctive line. The total alone is weak when you buy the same service each month or several orders are for the same amount. Choose a field that changes between purchases, such as the invoice date or a line quantity, and tie it back to the order. Some invoice formats present explanatory fields differently. You can still compare the values and the roles when each is identifiable.
Two files with the same total
Consider this illustrative handoff. A supplier sends an XML file and a PDF. Both show the same total and the same seller. Your team assumes the PDF is the readable copy and starts to book the purchase. On closer review, the invoice numbers differ. The supplier had made two shipments of the same item, and the files came from separate invoices. The numbers resolve the issue even though the other fields initially appeared to line up.
Keep both existing files with their own references while the supplier confirms the pair for each shipment. Ask the issuer for the PDF and XML corresponding to a specific invoice number, and give the order or shipment reference in your message. Avoid editing file data to make two records agree. Record an attachment mix-up separately from an official verification mismatch. These findings concern different sources and call for different follow-up.
A matching number with different details
A different company identifier or total on two documents carrying the same number is a more serious contradiction. Confirm that you are reading the correct field in each format, including the total row rather than a line item or a tax subtotal. Use the viewer to inspect the body. Comparing values copied into a spreadsheet may only compare two internal transformations. If the difference remains, save both copies and ask the issuer to send the original files again through its established invoice channel.
When checking the discrepancy, write down the field, the value from the XML and the value from the readable copy. If a later red-letter invoice enters the picture, assign it its own row and document number. Relate it to the original using the evidence returned with the adjustment rather than substituting one file for the other. A supplier may include the original and a later adjustment in the same message. They belong together in the purchase folder while retaining separate invoice records.
File import on the national platform
Open the national VAT invoice verification platform. The July 2026 public check walkthrough from Shanghai’s Hongkou District shows the import option and gives PDF and OFD as examples. If the current file selector lists XML for the invoice you received, choose the issuer’s XML directly. Otherwise use a format the page offers or switch to manual entry. Keep the XML as part of your original file pair. If the platform fills or displays fields from the file, compare them with the invoice you intend to check before you submit.
The public platform is separate from the tax digital account that an eligible Mainland taxpayer may use. The Liaoning tax authority's guidance describes the two services and their respective verification routes. An overseas customer can begin with the public platform. If you need a fresh attachment from a seller's account, ask the seller to download and send a copy through its billing channel. Keep your review independent of the seller's account access.
Keep the outcome of the query distinct from the upload outcome. The form may accept the file and populate fields before any verification is complete. A readable file still needs a completed lookup and result. When the platform reports data that does not match, compare the full invoice number, date and verification value with the source attachment. If a network or file-reading error prevents submission, preserve that as an incomplete attempt. It gives you a concrete reason to try the readable file or a separate manual route.
The readable file route
If you only have a viewer copy that will not import or a tool without XML upload, get the original readable file from the issuer. The ChinaValidate invoice verifier offers an original PDF route for supported Chinese tax invoices and manual entry for supported tax invoice fields. Read the current instructions at the upload field. Keep the XML with your files even if you submit the separate PDF for the lookup.
For a manual check of a typical fully digital invoice, use the invoice number, issue date and total including tax that the form requests. Confirm that all fields come from the same invoice. When handling a folder with several months of invoices, take those values from the complete matching view rather than from rows copied into a single worksheet. A manual check can verify the record for the submitted values. It leaves the provenance and integrity of any separate XML attachment to be assessed from its source and suitable file evidence.
The Ministry of Finance's accounting data standard application guidance discusses fully digital invoice XML delivery with a tax authority digital signature. Inspecting a file signature, checking a tax record and confirming that the record belongs to your purchase are separate reviews. If your organization needs signature or archive evidence, preserve the issuer's original and use the tools and format its process requires. A text viewer that displays the data only shows that the file is readable.
The figure that gets booked
Before anyone posts the amount, check that the value your accounts system extracted still corresponds to the number and document you reviewed. It is possible for the XML to be paired correctly at receipt and then assigned to a different purchase during import. Match the seller, the submitted invoice number and your internal order reference in the accounting handoff. A second copy received through a different channel can be attached to the existing invoice record once you have established that it represents the same invoice.
A record your team can reopen
Save the unchanged XML and readable issuer file together after the identifiers agree. Put the order reference, the checked verification field values, the date of the query and the result beside them. For a pair that you have reconciled, a simple note can state that both files carry the same invoice number and seller and identify which file or fields you sent to the verifier. That lets the next reviewer reproduce your check.
If the XML is still missing, make the remaining request specific. Tell the supplier whether you need the electronic data file for your finance process, a readable companion for the particular invoice, or a corrected attachment linked to the right number. To distinguish PDF, OFD and XML more generally, use the Chinese invoice formats guide. For the current transaction, keep the outstanding evidence separate from the invoice details you have already confirmed.