China VAT Invoice Line Matching API

Use verified Chinese VAT invoice line items to reconcile purchase orders and goods receipts, including partial deliveries and amount differences.

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

Verify a Chinese invoice using its printed details.

View API documentationAPI workspace
China VAT Invoice Line Matching API

The purchase order says 100 brackets. The warehouse has accepted 60. The supplier issues a Chinese VAT invoice for all 100. The invoice number, date and seller agree with the verification response, and the total agrees with the purchase order. An accounts payable system that checks only the invoice header would miss the discrepancy. There are still 40 brackets to account for before the invoice can be released under a policy that requires receipt matching.

Use the ChinaValidate invoice verification API to obtain the verified invoice fields. Your purchasing system can then compare those fields with purchase orders and goods receipts. The verification result belongs in the evidence record, while the reconciliation result controls the next action in your payment workflow. Keeping both lets an operator see an invoice that was found and verified but still has a quantity exception. ChinaValidate invoice verification API

Three records, one payment decision

Start from the invoice that the supplier submitted for this order. For a Mainland China fully digital electronic invoice, the State Taxation Administration describes nationally assigned 20-digit invoice numbers and specifies the standard invoice content, including buyer and seller information, item names, units, quantities, amounts and tax information. Some invoice categories have their own elements. Store the number as text so the original characters survive spreadsheets and imports. Capture the original document, its date and the identity of the submitter together. State Taxation Administration announcement on fully digital electronic invoices

Take the purchase order and receipt from your own systems. The order gives the agreed supplier, item identifiers, pricing basis and ordered quantity. The receipt gives the actual quantity accepted at the point your policy recognizes receipt. A packing list or a note that goods have shipped can help resolve a discrepancy, but the system needs its own receipt evidence when a receipt is required for payment. For a service purchase, substitute the approved evidence of performance that your organization actually uses.

Oracle's accounts payable documentation describes matching an invoice to a purchase order or receipt, including partial shipments. Its procurement documentation distinguishes a two-way quantity match against the purchase order from a three-way match that brings in the receipt. Use this distinction when setting your own rules. For example, a receipt that was never posted is a workflow task for the warehouse. A received quantity that was posted and is less than what was billed is an exception the buyer and supplier may need to resolve. Oracle invoice-line matching · Oracle match approval levels

Read the verified invoice lines

Choose the verification input documented for the invoice and file you received. The field-based API takes the necessary invoice identifiers and values for the relevant format. Its response documents an application code and data.items. A successful request and an item with verification_status: "matched" are two distinct checks. A mismatch or missing result calls for invoice review before the system treats any supplied values as verified. Retain the response that was actually used for the decision, including its original field values.

For a matched item, read the seller's tax identifier and the invoice number and issue date. When line_items contains details, the documented item fields include item_name, quantity, unit, net_amount, tax_amount and tax_rate. The header has its own net, tax and total amounts. Treat a missing value as unknown and preserve a reported zero as a value. For instance, a consulting line with a blank quantity still needs a meaningful amount or milestone check. Filling it with zero creates a misleading record that appears ready for a quantity comparison. Invoice API response fields

The following fragment shows one illustrative response item. The reference order and receipt fields are stored separately in the purchasing system. Amounts in this example use yuan.

{
  "verification_status": "matched",
  "invoice_type": "digital",
  "invoice_number": "25322000000000123456",
  "line_items": [
    {
      "item_name": "安装支架",
      "quantity": "100",
      "unit": "件",
      "net_amount": "12000.00",
      "tax_amount": "1560.00",
      "tax_rate": "0.13"
    }
  ]
}

Save the source line and its position in this response. Derive numeric values in separate fields with decimal arithmetic. Use explicit unit mappings, for example an order in boxes versus an invoice in individual pieces, only when the conversion is confirmed for that product. Preserve the invoice's Chinese item name for review. An English display value can assist colleagues, and the purchasing record should retain the label that was actually verified. Two similar descriptions can refer to different part sizes or material grades.

Allocate the invoice to orders and receipts

Start by narrowing the orders to the selling entity, approved supplier account and order reference. Compare legal entities before comparing descriptions. Someone reviewing a mismatch should be able to see which seller is on the invoice and which entity appears on the order. When a distributor or another company issues the invoice, examine the purchasing arrangement before selecting an order.

Verified invoice and receipts Allocation Follow-up
Invoice 60 pieces, 60 accepted and still available to invoice Allocate 60 to the recorded receipt Compare amount and unit basis
Invoice 100 pieces, 60 accepted and available Record the proposed allocation and identify the 40-piece difference Review missing receipt or request a corrected billing arrangement
Invoice 60 pieces, all 60 accepted but 20 already billed Compute 40 still available Review the 20-piece overlap with the earlier invoice

Suppose an order had two deliveries, one for 60 accepted pieces and one for 40. The same supplier may bill those separately or issue an invoice once both receipts are available. Store an allocation per invoice line and receipt line. Keep the quantity already allocated by earlier accepted invoices. A third invoice can look plausible on its own while exceeding what has been billed in total. Allocate within a transaction or otherwise make concurrent allocation against the same receipt consistent. If one worker has already used the last available 20 pieces, a second worker opening the same receipt must see the updated balance before approving a conflicting allocation.

A supplier invoice can also summarize several deliveries under a single line. Group only order lines you can tie to the same item and unit, and preserve each receipt's contribution. If the invoice has one generic manufacturing line that could map to several unrelated part numbers, create an exception and ask for the supplier's itemized explanation. Store that explanation beside the original verified line. Each purchase order link should carry only its own allocated quantity and amount.

Compare the amounts at the right level

An invoice line's net_amount is before tax. Compare it with an agreed net value or derive the corresponding net value from an explicitly tax-inclusive purchase order. The tax field records the invoice's tax amount, while the invoice total includes tax. An interface that displays only a currency symbol and a grand total can hide a taxable-base mismatch. Show whether a displayed amount includes tax and preserve the currency and order pricing basis used for any conversion.

At a net price of 120 yuan per piece, 60 pieces correspond to 7,200 yuan in the partial delivery scenario. An invoice line with 100 pieces and a net amount of 12,000 yuan has the expected implied unit price but exceeds the received quantity. Another invoice line for 60 pieces and a net amount of 7,500 yuan agrees on quantity and differs on value. Present these as distinct exceptions, because they go to different people and need different evidence. Compare any discount with the authorized order or adjustment, and put the permitted rounding tolerance in the buyer's own policy.

If the invoice contains freight or a separate fee, compare it with its own approved order line or allocation rule. An amount can be commercially expected without representing another unit of goods. For several different kinds of taxable line, preserve line tax rates and tax amounts before aggregating. Check a total error with the original invoice and gross or net basis before anyone changes a unit price to force a balance.

Route exceptions with the evidence attached

Keep an operator view that shows the printed line, matched response, candidate order lines, available receipt balances and reason for review. Use specific reasons such as missing receipt, quantity overbilled, amount variance, missing details, or earlier allocation conflict. Each should point to the evidence and the person who can resolve it. If the warehouse posts a late receipt, rerun the receipt comparison against the saved verification response when appropriate. Preserve the old decision and append the revised decision with its time and source.

A duplicate file upload can attach to the same invoice record without reserving the goods twice. A retry after a local database error must also leave one allocation. Use the invoice identity appropriate to the format and a stable internal allocation identifier. Preserve links to receipt and order lines when a payable is held, reopened or released so a later audit can retrace the decision.

In acceptance testing, send the same matched invoice through once with 60 recorded receipts and again after all 100 have arrived. Then test a line with a missing quantity and a posted receipt already linked to another payable. Confirm that every transition retains the issued invoice line and its original verification outcome. The accounting allocation explains which ordered and received goods the payment covers.