China Red-Letter E-Invoice API Reconciliation

Use ChinaValidate’s invoice verification API within an accounts-payable workflow that links a Chinese original invoice, its red-letter correction and any replacement.

ArticlesPublished by ChinaValidatePublished December 3, 2026Last updated December 3, 2026

Verify a Chinese invoice using its printed details.

View API documentationAPI workspace
China Red-Letter E-Invoice API Reconciliation

A Chinese supplier issues a digital VAT invoice for CNY 1,200. You return some of the goods and receive a document for a CNY 300 adjustment. The accounts-payable integration needs to know which document was actually issued, which original invoice it corrects, and whether the CNY 300 has already been applied. A ChinaValidate verification result helps confirm the details of a document submitted for checking. The relationship between documents comes from the applicable tax materials and the finance team's own reconciliation.

The integration can handle this cleanly by giving each document its own record and storing the correction relationship beside it. A verified original invoice can remain on file when a correction arrives. The new document changes the amount potentially payable on the original transaction only after the buyer establishes the relationship and approves the adjustment.

The original, the confirmation and the correction

The original positive invoice is often called the blue-letter invoice. A red-letter invoice is issued for a correction such as a return, allowance, cancellation of a service or invoicing error, as applicable. The red-letter invoice information confirmation form records the information for the correction process. The State Taxation Administration's guidance distinguishes routes depending on the recipient's prior confirmation of use or accounting. It also distinguishes full and partial issuance and describes how the confirmation must match the applicable original invoice. State Taxation Administration red-letter digital invoice guidance

Start by looking at the documents your accounts team received. An attachment described as a “red invoice” in a supplier email could be the issued invoice, a confirmation form or a supplier's own account statement. Save the file under the document type that the content actually supports. If all you have is a confirmation, create a review item for the requested adjustment and check whether the red invoice has been issued. Store the confirmation reference separately from the number printed on an invoice.

The distinction matters even when the numbers add up. An amount can appear on the pending form and the issued document. Recording both as deductions would apply the same adjustment twice. Require a confirmed connection to the original invoice and use the issued document as the invoice record. For exceptions that require a determination of the appropriate local accounting or tax treatment, keep the underlying materials available to the responsible finance team.

The verification record for one invoice

The ChinaValidate field endpoint, POST /v1/invoices/verify, documents a request for a digital VAT invoice using invoice_type, invoice_number, issue_date and total_amount. For this type, the total is the printed amount including tax. The documented request preserves invoice numbers as strings and uses YYYYMMDD for the issue date. Use the original file and its printed data when constructing the request. Depending on the document actually received, the documented PDF endpoint may provide another way to check an invoice. Invoice verification API · PDF invoice verification API

This example is for the fictional original positive digital invoice. Use authorized test data before running individual checks on real invoices. The request deliberately contains no confirmation form number or proposed adjustment.

curl -sS 'https://api.chinavalidate.com/v1/invoices/verify' \
  --header "Authorization: Bearer ${CHINAVALIDATE_API_KEY}" \
  --header 'Content-Type: application/json' \
  --data '{
    "invoice_type": "digital",
    "invoice_number": "25322000000000123456",
    "issue_date": "20261009",
    "total_amount": "1200.00"
  }'

Read the verification_status in the documented result items under data.items. In a usable result, capture the invoice number and document details returned alongside it. Where relevant, compare the seller and buyer tax identifiers and the recorded net amount, tax and total. A match can support the identity of the checked document. To establish that a red invoice corrects this particular blue invoice, use the verified connection in the tax records or corresponding authorized materials. Keep the link evidence and amount allocation in your own workflow. The published response schema describes individual invoice results. It does not document a returned blue-to-red relationship.

Verify support for the precise document type before automating the red invoice itself. When the current API documentation or the information for your integration does not establish support for a particular correction document, route its verification to the tax platform or the responsible finance reviewer. Keep the original invoice's API result independent of that review. Do not convert a negative amount into a positive value and submit it as though it were a different invoice.

A partial return in the payable ledger

In the example, the original invoice has a total of CNY 1,200 and the confirmed red invoice reduces it by CNY 300. If these are the only adjustments, the invoice amount after correction is CNY 900. The accounting entry, tax treatment and actual cash position can each have different evidence. For an unpaid bill, the amount after the adjustment can be compared with scheduled payment. For an already paid bill, the finance team needs to establish whether it is looking at a credit balance, an agreed offset or a completed bank refund.

Event in the example Evidence the application keeps Effect in the review
Original invoice issued Original invoice number, issuer, total of CNY 1,200 and available verification result Enter the original invoice amount once.
Supplier sends a confirmation form Confirmation reference, original invoice reference, and proposed CNY 300 adjustment Open an adjustment review and track the next step.
Red invoice is issued and confirmed against the original Red invoice number, linked original, source of the connection and CNY 300 adjustment Apply the approved adjustment once and track the revised CNY 900 invoice amount.
A refund or offset later appears Bank record or reconciliation statement and its separate reference Reconcile the settlement against the approved adjustment.

The State Taxation Administration illustrates how a red-letter invoice fits within the amount of the corresponding positive invoice and explains related handling in the issuing system. Those tax-side amounts and quotas serve different purposes from the balance in a buyer's payment ledger. Oracle's Payables documentation offers a separate implementation example of matching a financial credit to the original invoice, order or receipt. Its credit memo workflow is a useful accounting-system comparison. The Chinese confirmation and issuance process follows the Chinese tax materials. State Taxation Administration worked guidance · Oracle Payables credit and debit memo matching

Full reversal and replacement

A different order might need a full reversal and a new invoice. Keep three document identifiers if you have the original, the issued red invoice and a replacement. Link the reversal to the original and document the relationship of the replacement to the same underlying order when supported. Reconcile the combination before sending a payment instruction. A separately verified replacement can still be entered twice if the old invoice remains queued as payable, so the payable review needs to see the effect of the whole correction.

A partial correction can also arrive in stages. Two red invoices may cover different returned items or a quantity return and a later price allowance. Preserve the source and amount of each authorized allocation. Compare the cumulative adjustment with the original amount and reconcile any discrepancy. A search against one invoice number does not tell you which internal purchase order or cost center the finance team approved for a partial adjustment. Use the purchase order and receipt records for that decision.

If only the corresponding original can be identified, hold the posting decision for the correction while reviewing available source material. The goal is to show what remains unresolved. A missing replacement, for example, calls for different evidence than a missing proof of refund. Where a single payment covers several orders, preserve the transaction record and match it to the relevant amounts in the ordinary settlement workflow.

When a supplier sends a corrected invoice under a new invoice number, compare purchase lines and the original relationship before any new posting. The correction may concern a single delivery under a purchase order covering several deliveries. Keep the corrected amount attached to the affected delivery and line where that relationship is supported. A reviewer should be able to reconcile the remaining quantities as well as the balance. If the invoice-level information alone does not show the allocation, preserve what was actually received and use the approved return or allowance record to complete the review.

Repeated files and separated approvals

The same issued invoice may reach an inbox twice, first as a PDF and later in a supplier bundle. A file hash can help recognize an identical attachment. For the accounting identity, extract and verify the invoice fields that identify the same document and issuer in the relevant system. If two different documents contain the same amount, avoid deduplicating them on amount alone. If different files purport to be the same invoice but contain conflicting content, retain both and put the discrepancy in the review queue.

Keep the original and correction documents accessible to the authorized reviewer. A record of the API call can point to the invoice, time and returned outcome. The relationship record can point to the approved tax reference and the allocated amount. The posting or refund record can show what the finance team actually did. Use the team's ordinary access controls for invoice files. A diagnostic log needs enough information to reconstruct the call without copying entire sensitive attachments into general support messages.

The case is ready to close when the team can find the original invoice, identify each correction and replacement, explain the amount left on the purchase, and separately account for any cash or offset. The API supplies evidence for the invoices checked. The reconciliation record explains how those documents affected the order.