Practical guide
Purchase references in XRechnung
Identify syntax and business fields
XRechnung is a German electronic invoicing specification based on European standard EN 16931. Its documentation covers UBL and CII. Identify the original XML’s syntax and profile before applying mapping, then verify that the importer assigns business terms to the correct fields for that syntax.
Buyer reference is BT-10 and may support classification or routing. Purchase-order reference is BT-13 where provided. Also check issuer, invoice number, currency and received line identifiers. Validate the XML against the version and rules applicable to the exchange.
A €1,340 XML invoice with a buyer reference
The company receives an XRechnung totaling €1,340.00. BT-10 contains “MAD-ALM-02,” identifying the receiving team. The contract requires order PC-731, but the XML has no BT-13. Check the original for other data that could locate the order and ask purchasing to substantiate the link.
If two candidate orders share the total, compare lines, quantities and receiving references to identify the correct one. Retain buyer reference and confirmed purchase order in separate fields so the decision can be reconstructed.
Check references during Calitem intake
In the original UBL invoice, look for Invoice/BuyerReference and Invoice/OrderReference/ID. In CII, use CrossIndustryInvoice/SupplyChainTradeTransaction/ApplicableHeaderTradeAgreement/BuyerReference and its BuyerOrderReferencedDocument/IssuerAssignedID for the order number. These paths omit namespace prefixes.
Compare the raw buyer reference with the buyer’s required routing value and the order reference with its authorized purchase order. Hold a missing or mismatched field before the first transfer. If the invoice already posted, keep its ID and send the mapping discrepancy to accounting or integration for authorized correction.
- Use the intake channel and format compatibility agreed for your configuration. Retain the source XML and verify that mapping preserves BT-10 as buyer reference.
- If evidence for PC-731 is missing, hold the case for purchasing. If the first import is unconfirmed, inspect its identifier or prior record before resubmitting.
- Once purchasing confirms the PC-731 link, retain BT-10 as buyer reference. If a draft or invoice exists, inspect both fields through its ID. If the prior submission’s state is unknown, confirm it before another creation. With available receipt evidence, sufficient support and no existing destination record, verify one €1,340.00 invoice with supplier, order, lines and original buyer reference.
