Provide the buyer reference

Error BR-DE-15 XRechnung

The element "Buyer reference" (BT-10) shall be transmitted.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The ram:BuyerReference element is missing or contains no text after leading and trailing whitespace is removed. The buyer reference BT-10 must be provided as a non-empty value.

What the rule means

The buyer reference associates the invoice with the buyer’s reference. It must be provided as the required item BT-10.

Affected fields BT-10
Please enter the buyer reference for the invoice

The buyer reference is missing from your invoice or contains only whitespace. Add a non-empty reference to the invoice header.

What to do
  1. Add a non-empty buyer reference to ram:BuyerReference.
  2. Check the value using ReferenceOrderNo.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:ApplicableHeaderTradeAgreement>
  <ram:BuyerReference/>
</ram:ApplicableHeaderTradeAgreement>
✓ Correct
<ram:ApplicableHeaderTradeAgreement>
  <ram:BuyerReference>REF-123</ram:BuyerReference>
</ram:ApplicableHeaderTradeAgreement>
Check in FactoorSharp
  • FacturXInvoice.ReferenceOrderNo (BT-10)
Technical details

The test requires ram:BuyerReference under ram:ApplicableHeaderTradeAgreement and checks that its normalized content is not empty.

Where the rule applies

The rule applies to the agreement information in the invoice header under ram:ApplicableHeaderTradeAgreement.

Original message from the Schematron
Das Element "Buyer reference" (BT-10) muss übermittelt werden.
Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerReference[boolean(normalize-space(.))]